PLEASE FOLLOW ALL DIRECTIONS PROVIDED BY TEACHER
Lab1: Write a class, xxxx StringLab1 (where xxxx is your Kean id), with a main method. Include the following: (10 points) o o o o o Using the methods of String produce the output in the following slide You must use the methods indicated on the slide following the output This is an individual assignment Declare a String variable in your class. The content of the String is “Kean University” Using the String and the methods of the String class, print the following lines (you do not have to print the line numbers at the beginning of each line; they are there so I can show you want method I want you to use in the next section). On each line, you MUST use a method of the String you created to produce the output to receive any credit 1) The number of characters is 15 2) The String in lower case is kean university 3) The String in upper case is KEAN UNIVERSITY 4) The first 6 characters of the String is Kean U 5) The rest of the characters in the String are niversity 6) The U in the String is at position 5 7) The u in the String is at position-1 8) The o in the String is at position -1 9) A new String where University is replaced with U Kean U 10)The original String has not changed Kean University For each line use the methods to the right of the line: 1) The number of characters is 15 2) The String in lower case is kean university 3) The String in upper case is KEAN UNIVERSITY 4) The first 6 characters of the String is Kean U 5) The rest of the characters in the String are niversity (substring) 6) The U in the String is at position 5 7) The u in the String is at position -1 8) The o in the String is at position -1 9) A new String where University is replaced with U Kean U (replace) 10)The original String has not changed Kean University (none) (length) (toLowerCase) (toUpperCase) (substring) (indexof) (indexOf) (indexof)