Program import java.util.ArrayList; public class ArrayListClear { public static void main(String[] args) { ArrayList<Integer> arr = new...
Author - Mathan Lal
Program import java.util.ArrayList; public class ArrayListAddSet { public static void main(String[] args) { ArrayList<Integer> ven = new...
Program import java.util.ArrayList; public class ArralistIntSize { public static void main(String[] args) { ArrayList<Integer> list = new...
Program public class StringValueOf { public static void main(String[] args) { boolean b1 = true; byte b2 = 11; short sh = 12; int i = 13; long l = 14L; float f...
Program public class StringToUpperCase { public static void main(String args[]) { String Str = new String("Welcome to Girikalan Magic Show"); System.out...
Program public class StringToCharArray { public static void main(String args[]) { String s1 = "venkatesh"; char[] ch = s1.toCharArray(); for (int i = 0; i <...
Program public class StringSubstring { public static void main(String args[]) { String s1 = "venkateshsiva"; System.out.println(s1.substring(2, 4)); System.out...
Program public class StringSplit { public static void main(String[] args) { String c1 = "Dh,o,n.i"; String delimiters = "\\s+|,\\s*|\\.\\s*"; String[] tokenVal...
Program public class StringReplace { public static void main(String[] args) { String s1 = new String("Welcome To My World"); System.out.println("1.Replace:...
Program public class StringJoin { public static void main(String[] args) { String date = String.join("/","01","03","1999"); System.out.println(date); String...
Program public class StringIntLength { public static void main(String args[]) { String abc1 = new String("My profile is on LinkedIn.com"); String abc2 = new...
Program public class StringCompareToIgnoreCase { public static void main(String args[]) { String str1 = "Venkatesh From France"; String str2 = "Muruga Balan...
Program public class StringCompareTo { public static void main(String[] args) { String s1 = "I"; String s2 = "AM"; String s3 = "GOOD"; String s4 = "INDIAN";...
Program import java.io.File; import java.net.URI; public class FileUri { public static void main(String[] args) { File directory = new File("helloworld"); try...
Program import java.io.File; class FileSetWritable { public static void main(String args[]) { try { File f = new File("java"); if (f.setWritable(true)) {...
Program import java.io.File; public class FileSetReadable { public static void main(String args[]) { try { File f = new File("bin"); if (f.setReadable(true)) {...
Program import java.io.File; public class FileDelete { public static void main(String[] args) { File file = new File("C:\\Users\\Dev\\Desktop\\1.txt"); file...
Program import java.io.File; public class FileCompareToPathName { public static void main(String[] args) { File firstFile = new File("Jaswanth1"); File...
Program import java.io.*; public class FileCanWrite { public static void main(String args[]) { File f = new File("bin"); if (f.canWrite()) { System.out...
Program import java.io.*; public class FileCanRead { public static void main(String args[]) { File f = new File("bin"); if (f.canRead()) { System.out...