How-to articles, tricks, and solutions about JAVA
How to Compare Strings in Java
The comparison of strings is one of the mostly used Java operations. If you’re looking for different ways to compare two strings in Java, you’re at the right place.
How to Create a File in Java
Learn 3 ways of creating files in Java with examples. Use java.io.File class, java.io.FileOutputStream class or Java NIO Files.write() class for creating new files in Java.
How to Create Temporary File in Java
Learn the two static methods of createTempFile of the File class. Use the deleteOnExit() method to ensure that the temporary created file will automatically be deleted.