코딩Coding/Java&Kotlin
-
-
JDK 19: The new features in Java 19코딩Coding/Java&Kotlin 2022. 6. 7. 10:48
https://www.infoworld.com/article/3653331/jdk-19-the-new-features-in-java-19.html JDK 19: The new features in Java 19 Virtual threads, pattern matching for switch expressions, a vector API, and a Linux/RISC-V port are slated for Java 19, a non-LTS release of standard Java due in September. www.infoworld.com
-
Java - 폴더 src, dist폴더에 따로 관리하기코딩Coding/Java&Kotlin 2022. 6. 5. 21:49
https://stackoverflow.com/questions/4764768/java-how-can-i-compile-an-entire-directory-structure-of-code Java: How can I compile an entire directory structure of code ? The use case is simple. I got the source files that were created using Eclipse. So, there is a deep directory structure, where any Java class could be referring to another Java class in the same, c... stackoverflow.com javac로 컴파일..
-
New switch Expressions in Java 12_java 17(에러메세지 해결) (use --enable-preview to enable patterns in switch statements)코딩Coding/Java&Kotlin 2022. 6. 5. 20:54
https://blogs.oracle.com/javamagazine/post/new-switch-expressions-in-java-12 에러 메세지 src/Start.java:8: error: patterns in switch statements are a preview feature and are disabled by default. case Sleeping sl -> System.out.println("Wake up!" + sl.hours); ^ (use --enable-preview to enable patterns in switch statements) java --enable-preview Start Start 는 컴파일 하고 나온 실행 파일 Start.class 17 뭐시기 에러나서 해결함...
-
java에서 char는 2bytes코딩Coding/Java&Kotlin 2022. 4. 24. 08:24
https://stackoverflow.com/questions/5078314/isnt-the-size-of-character-in-java-2-bytes Isn't the size of character in Java 2 bytes? I used RandomAccessFile to read a byte from a text file. public static void readFile(RandomAccessFile fr) { byte[] cbuff = new byte[1]; fr.read(cbuff,0,1); System.out.println(new String( stackoverflow.com https://www.masterqna.com/android/38084/%EC%A0%95%EC%88%98%EB..
-