Skip to content

Commit 15c08f8

Browse files
committed
Tell students to write JavaDoc comments
1 parent 290df46 commit 15c08f8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/com/codefortomorrow/intermediate/chapter11/practice/Temperature.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ public static double fahrenheitToCelsius(double fahrenheit)
1313
fahrenheit = (9.0 / 5) * celsius + 32
1414
celsius = (5.0 / 9) * (fahrenheit – 32)
1515
16+
Bonus points for writing JavaDoc comments for both methods.
17+
1618
Write a test program that asks the user for a temperature
1719
in Fahrenheit and prints out the Celsius conversion. Then
1820
ask the user for a temperature in Celsius and print out

src/com/codefortomorrow/intermediate/chapter11/solutions/Temperature.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ public static double fahrenheitToCelsius(double fahrenheit)
1515
fahrenheit = (9.0 / 5) * celsius + 32
1616
celsius = (5.0 / 9) * (fahrenheit – 32)
1717
18+
Bonus points for writing JavaDoc comments for both methods.
19+
1820
Write a test program that asks the user for a temperature
1921
in Fahrenheit and prints out the Celsius conversion. Then
2022
ask the user for a temperature in Celsius and print out

0 commit comments

Comments
 (0)