Author - Mathan Lal

java files

import java.io.File;

Program public class FileBooleanEquals { public static void main(String[] args) { File file1 = new File("c:\\program\\test.txt"); File file2 = file1; File...

java String

Java String compareTo example

Program public class StringCompareTo { public static void main(String[] args) { String s1 = "I"; String s2 = "AM"; String s3 = "GOOD"; String s4 = "INDIAN";...

java String

Convert UpperCase to LowerCase

Program public class ToCase { public static void main(String args[]) { String Str = new String("Welcome to Girikalan Magic Show"); System.out.println(Str...

Collections

Java arraylist sort comparator

package com.candidjava; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; class Studentdata { int rno; String name; int...