Strut2-Autocomplete-With-Database index.jsp <META HTTP-EQUIV="Refresh" CONTENT="0;URL=autocomplate.action"> Autoco...
Write properties file
Write properties file package java9r.blogspot.com; import java.io.BufferedWriter; import java.io.File; import java.io.FileOutputStream; impo...
Sort the contents in txt file
A text file can be read line-by-line with a BufferedReader. To sort these lines, we can read them into a List and run a Collections.sort() ...
Read file line by line
Normally, Java properties file is used to store project configuration data or settings. In this tutorial, we will show you how to read and ...
java program to print-sub-files-and-sub-directories-in-a-directory (including files in all sub directories)
java program to print-sub-files-and-sub-directories-in-a-directory (including files in all sub directories) package java9r.blogspot.com;...
How to create immutable classes in java
Immutable class is the class whose value cannot be changed throughout the life cycle. Ex:String We cannot change the content of String cla...
BoxLayout
The Box Layout is a jack of all trades. You can stack your widgets on top of each other... Along with the alignment, there are three techniq...