/* Write a java program to a)test equality between two strings b)concatenate "Add my java kits" to one of the string c)Find the length of the strings d)Replace the i's in the string with z's e)Convert one of the strings to uppercase AIM: To perform different operations on the given string. */ class stringman { public static void main(String args[]) { String s1 = "This is Java's Heaven"; String s2 = "This is Java's Heaven"; //Equality if(s1.equals(s2)) System.out.println("Both strings are equal"); else System.out.println("The strings are unequal"); //Concatenating tow strings String s3=s1.concat(" Add my Java Kits"); System.out.println("After concatenating : "+s3); //Length of strings System.out.println("Length of s1= "+s1.length()); System.out.println("Length of s3= "+s3.length()); //String replacement String s4= s2.replace('i','z'); System.out.println("After replacing i by z "+s4); //Converting string to Uppercase String s5= s3.toUpperCase(); System.out.println("After converting s3 to uppercase: "+s5); } }