Question: 4. (4 points) elne a-a3 Syatem.out.printinta 5. (4 points) String title.x int 8 char cl.c2 title- Comp Math s title.length O ci title.charAt (3) c2title.charAt

4. (4 points) elne a-a3 Syatem.out.printinta 5. (4 points) String title.x int 8 char cl.c2 title- "Comp Math" s title.length O ci title.charAt (3) c2title.charAt (8) x title.toUppercase)i System.out.printin a)z System.out.println( el m System.out.printin c2 System. out.println(x COMn 6. (2 points) string sl "Hello"; string s2"Hel1o" if (s1.equals (s2) ) ) Systemout . println ( "W" ) ; else system.out.printin(x) if sl.compareTo (s2)0) System.out.printin("y") else System.out.printin ("Z") (2 points) Given the following Java statements, what would happen to igned to s1? COMP when "MATH, is String sl; s1 = "COMP". s1 = "MATH
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
