Strings
Write the printf statement with a format specifier that will print the value of a floating point variable called gpa with one decimal place and a field width of 10. |
System.out.printf("%10.1f", gpa); |
|
Define a String called book and assign to it the literal, My favorite book is, "Warrior's Apprentice" including the quotes. |
String book = " My favorite book is \"Warrior's Apprentice\""; |