Question: QUESTION 1 What is the value of the variable c in the statements that follow? String phrase Make hay while the sun is shining. char
QUESTION 1 What is the value of the variable c in the statements that follow? String phrase "Make hay while the sun is shining." char c -phrase.charAt(10) O None of the choices QUESTION 2 Write a Java statement to access the 7th character in the String variable myString and place it in the char variable c. O c myString. charAt(7) O c- myString charAt(6) O c- myStringl7] O c myString(6)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
