Question: What will the following code output? String message = Have a great day!; System.out.println(message.charAt(5));
What will the following code output?
String message = "Have a great day!";
System.out.println(message.charAt(5));
Step by Step Solution
3.34 Rating (157 Votes )
There are 3 Steps involved in it
The code will output the character g which is at index 5 ... View full answer
Get step-by-step solutions from verified subject matter experts
