Binomial coefficient using generic Typ
With generic typ List With generic typ Array
With generic typ List With generic typ Array
There are many ways to read file into a List in Java. commons-io guava Java 7.0
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”
BitSet and FastBit will always change themselves if they do some set operations, just like and, or, andNot. To avoid such cases, you should write a extended classes: For BitSet: MyBitSet For FastBitSet: MyFastBitSet
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,…
for Audio for Video You can directly see and the try the cods with JS Bin Audio and Video Tags for HTML5
HTML5 has a lot of nice feature, but the cross browser support is still not so ideally. Just like: If you want to disable the fields in a “fieldset” and dynamically enable them when some condition is met, the best…