Conny Gu

Conny Gu

platform independent separators in java

line separator (Windows: “\r\n”, UNIX: “\n”) 1. BufferedWriter newline() 2. System.lineSeparator() 3. System.getProperty(“line.separator”) file separator file.separator(windows:”\”; unix:”/”) 1. BufferedWriter newline() 2. System.getProperty(“file.separator”) 3. File.pathSeparator Annotation: In Windows: “D:\codehamster”, you can change it to “D:/codehamster” or “D:\\codehamster”

Example for Javolution FastBitSet

Javolution is a High-performence java library, it is not only fast but also very comfortable to use. FastBitSet of Javolution is similar to BitSet of Java native Bib. But there are still some differences in usage: 1. BitSet is cloneable,…

How to make your website speak?

You can make your website or blog speak without any complicated technology. The easiest way is to use the tts-cloud service, but the most tts cloud services are costly. I tried a lot of them, at the end I found…