Four main concepts of Java or any other Object oriented programming language are 1. Abstraction ... Read More
We can use ternary operator in java to find singular or plural value as below. Here basket is a l ... Read More
* Here we will be using read and write files using java.nio package which came available in java 1.4 ... Read More
Encapsualtion is used to make class members non-accesible outside the class. We can make some cl ... Read More
Below is an example of writing to the text file using FileWriter class Note that we have added ... Read More
We have already seen the Or operator in previous post ``` System.out.println("Harry".replace ... Read More
* They are purely abstract classes.So no function can have defination in an interface.Interfaces con ... Read More
Code to create files ,directories and to create multiple files is below ``` try { ... Read More
If we want to print only files and not the directory we can do something like below We make a fi ... Read More
* Let see how to copy file named File1.txt from Dir3 directory in Dir2 to a folder named Dir3 wihin ... Read More