Program import java.util.Arrays; public class ArrayDeepHashCode { public static void main(String args[]) { int[][] array1 = {{ 8, 7, 4 }, { 3, 6, 5 },{ 0, 2, 1...
Author - Mathan Lal
Program import java.util.Arrays; public class ArrayDeepEquals { public static void main(String[] args) { Object[] a1 = new Object[] { 'x', 'y', 'n' }; Object[]...
Program import java.util.Arrays; public class ArrayCopyOfRange { public static void main(String[] args) { int[] arr = new int[] { 15, 10, 45 }; System.out...
Program import java.util.Arrays; public class ArrayCopyOf { public static void main(String[] args) { int[] arr = new int[] { 99, 88, 77 }; System.out...
Program import java.util.Arrays; import java.util.List; public class ArrayAsList { public static void main (String args[]) { String a[] = new...
Program import java.util.ArrayList; public class ArrayObjectRemove { public static void main(String[] args) { ArrayList<String> animals=new...
Program import java.util.ArrayList; import java.util.Collections; public class ArrayListReplaceAll { public static void main(String[] args) {...
Program import java.util.ArrayList; public class ArraylistContainsAll { public static void main(String[] args) { ArrayList<String> A1 = new...
Program import java.io.File; public class FilePath { public static void main(String[] args) { File file = new File("venkatesh.txt"); System.out.println("File...
Program import java.io.*; public class FileExamples { public static void main(String[] args) { File f= null; String path; boolean bool = false; try { f = new...
Program import java.util.TreeMap; public class TreeMapExamples { public static void main(String args[]) { TreeMap<Integer, String> tm= new...
Program import java.util.Stack; public class StackExamples { public static void main(String[] args) { Stack<String> stk = new Stack<>(); stk...
Program import java.util.PriorityQueue; import java.util.Collections; import java.util.Iterator; public class PriorityQueueExample { public static void...
Program import java.io.LinkedList; import java.util.LinkedList; public class LinkedListTypes { public static void main(String args[]) { LinkedList<String>...
Program import java.util.LinkedHashSet; public class LinkedHashSetExample { public static void main(String args[]) { LinkedHashSet<String> set = new...
Program import java.util.LinkedHashMap; public class LinkedHashMapTypes { public static void main(String[] args) { LinkedHashMap<Integer, String> mapping =...
Program import java.util.ArrayList; import java.util.Collections; public class ArrayListReplaceAll { public static void main(String[] args) {...
Program import java.io.File; import java.io.IOException; public class Lengthoffile { public static void main(String[] args) { try { File f = new File("D:\\doc...
Program import java.io.*; public class FileStringBoolean { public static void main(String[] args) { File f = null; File f1 = null; File f2 = null; File f3 =...
Program import java.io.File; import java.text.SimpleDateFormat; import java.util.Calendar; public class FileLastModifiedDate { public static void main(String[]...