Java 11 Release changes
Java 11 has introduced a lot of additional methods in many classes. Let's see one by one.
Methods in String class
Similar to python methods
String.strip()
String.stripTrailing()
String.stripLeading()
String.lines()
String.repeat(int)
String.isBlank()
Methods in Files class
Files.readString(Path)
Files.writeString
Files.isSameFile
FileReader class changes
new constructors
FileReader(String fileName, Charset charset)
FileReader(File file, Charset charset)
Methods in InputStream
InputStream.nullInputStream
InputStream.readNBytes(int)
Methods in OutputStream:
OutputStream.nullOutputStream
FileWriter class changes
new constructors:
FileWriter(String fileName, Charset charset)
FileWriter(String fileName, Charset charset, boolean append)
FileWriter(File file, Charset charset)
FileWriter(File file, Charset charset, boolean append)
Reader class changes
new methods:
Reader.nullReader
ListSelectionModel class changes
ListSelectionModel.getSelectedIndices
ListSelectionModel.getSelectedItemsCount
ShortBuffer class changes
ShortBuffer.mismatch(ShortBuffer)
more changes will be updated soon
No comments:
Post a Comment