What is an html File? HTML is a format that tells a computer how to display a web page. The documents themselves are plain text files with s...
Hide and show a div
Hiding and showing a div in HTML is really simple. In this tutorial I will show you how to do that using only JavaScript. In this example, I...
Strut2-Autocomplete-With-Database
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;...