Program import java.io.File; import java.io.IOException; public class FileCreateMain { public static void main(String[] args) { File Obj = new...
Author - Mathan Lal
Program import java.io.File; public class FileBooleanEquals { public static void main(String[] args) { File file1 = new File("c:\\program\\test.txt"); File...
Program import java.util.WeakHashMap; import java.util.Map; public class WeakHashMapExample { public static void main(String[] args) { Map<Integer, String>...
Program import java.util.Vector; public class VectorWithMethods { public static void main(String[] args) { Vector<String> ve = new Vector<String>();...
Program import java.util.Iterator; import java.util.TreeSet; public class TreesetWithMethods { public static void main(String[] args) { TreeSet<String>...
Program import java.util.Map; import java.util.HashMap; public class IdentityHashMapExample { private static final Object str = null; public static void...
Program import java.util.Collections; import java.util.Hashtable; import java.util.Map.Entry; public class HashTableExample { public static void main(String[]...
Program import java.util.HashSet; public class HashSetExamples { public static void main(String[] args) { HashSet<Integer> hset = new HashSet<Integer>();...
Program import java.util.HashMap; public class HashMapWithMethods { public static void main(String[] args) { HashMap<Integer, String> map1 = new...
Program import java.util.EnumSet; import java.util.Set; enum days {SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY} public class EnumSetExamples...
Program import java.util.EnumMap; import java.util.Collection; public class EnumMappWithMethods { public enum Point{One,Two,Three,Four,Five} public static void...
Program import java.util.ArrayList; public class ArrayListExample { public static void main(String args[]) { ArrayList<Integer> arrlist1 = new...
Program import java.util.ArrayDeque; import java.util.Deque; public class ArrayDequeExample { public static void main(String[] args) { Deque<Integer> ven1 =...
Program public class StringIndex { public static void main(String args[]) { String s1 = new String("hello world"); int value1=s1.indexOf('h'); System.out...
Program public class StringStartsEnds { public static void main(String[] args) { String s1 = "this is java"; System.out.println(s1.startsWith("this")); System...
Program public class StringEmptyblank { public static void main (String[] args) { String str = "hello"; Boolean v = str.isBlank(); System.out.println(v);...
Program public class StringEqualsAndIgnoreCase{public static void main(String[] args){String s1 = new String(“welcome”);String s2 = s1;System.out...
Program public class StringContentEqualsStringBuffer { public static void main(String[] args) { String str1 = "Character"; String str2 = "character";...
Program import java.util.ArrayList; import java.util.LinkedList; public class ArrayListGetIndexOf { public static void main(String[] args) { // TODO Auto...
Program import java.util.ArrayList; public class ArrayIndexRemove { public static void main(String[] args) { ArrayList<Integer> a1=new...