Create a String object with the string: IT 206 is a GREAT class!
Then, print if the first letter of the string is an upper case letter.
// TestCode.java public class TestCode { public static void main(String[] args) { String s = "IT 206 is a GREAT class!"; if(s.charAt(0)>='A' && s.charAt(0)<='Z'){ System.out.println("First character is an Uppercase!"); } else{ System.out.println("First character is not an Uppercase!"); } } }
Get Answers For Free
Most questions answered within 1 hours.