Section 9.6 Write-Methods-WE3-P1
Subgoals for Writing Methods.
Subsection 9.6.1
Exercises Exercises
2.
Q47: Put the code in the right order to create a method that returns a String and accepts as parameters a double and a String, and concatenates the two values as a temperature along with its base scale. The method is called from main as follows:
System.out.println ( temps(32.5, "F"));
System.out.println ( temps(0.05, "C"));
You have attempted 1 of 4 activities on this page.