[JAVA] instanceof Problem java의 instanceof 연산자 Solution object instanceof type 의 경우, ojbect 가 type 이거나 type을 상속받는 클래스라면 true를 return, 아니면 false를 리턴. code: ArrayList al = new ArrayList(); System.out.println(al instanceof Object); output: true URL Java 2022.01.12
[Java-Gradle] error: unmappable character for encoding MS949 Problem Gradle로 Project를 생성한 후, URLEncoder.encode(주소, "UTF-8") 을 진행했을 때, error: unmappable character for encoding MS949 오류 발생 Solution build.gradle compileJava.options.encoding = 'UTF-8' tasks.withType(JavaCompile){ options.encoding = 'UTF-8' } build.gradle에 옵션 추가. URL https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=mankeys&logNo=221549380063 Java 2022.01.07