We know that we can use group patterns to print the occurence of a particular pattern in a String. W ... Read More
LinkedList vs Arraylist If we look from outside we may not find much difference between Arraylist ... Read More
Access modifiers and Scope Types of access modifiers 1.Public - can be accessed in any Class ... Read More
Collections lie in java.util package * ArrayList and LinkedList extend List Interface. * And Li ... Read More
We know we can iterate over a map in java like below.Here languages is a map ``` for(Strin ... Read More
We can even create our own exception class in java. Our own exception class should always extend Ex ... Read More
We have seen that we can create path instances and then we can create FileWriter and FileReader inst ... Read More
* We know that File class can also return the path of a File.So why did java come up with Path cla ... Read More
Code to copy file1.txt from examples folder and make a new copy in the same folder under the name fi ... Read More
Replaces any numbers with x ``` System.out.println("abCdeFGH123456789".replaceAll("[0-9]", ... Read More