Problem 21
Assume the variables name1 and name2 reference two different string objects, containing different strings. Write code that displays the strings referenced by these variables in alphabetical order.
Problem 31
Assume the following variable declaration exists in a program: double number \(=123.456\) Write a statement that uses system. out.printf to display the value of the number variable padded with leading zeros, in a field that is eight spaces wide, rounded to one decimal place. (Do not use comma separators.)