What is the code that will display the middle initial 'L' (right justified) with a
total of 10 spaces, given the following declaration?
String middleName = "Lanette"; - correct answer ✔System.out.printf("Here is
the first character of the middle name: %10c", middleName.charAt(0));
**%10c", middleName.charAt(0));**
What are the output of the following code segment:
System.out.println(Math.round(8.5));
System.out.println(Math.rint(4.5));
System.out.println(Math.ceil(3.5));
System.out.println(Math.rint(9.5)); - correct answer ✔9
4.0
4.0
10.0
System.out.println("Your name is " + yourName);