Skip to content

Commit 0ce46d4

Browse files
authored
Create Convert the Temperature.java
1 parent 04c87ab commit 0ce46d4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Easy/Convert the Temperature.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class Solution {
2+
public double[] convertTemperature(double celsius) {
3+
return new double[]{/* kelvin= */celsius + 273.15, /* fahrenheit= */celsius * 1.80 + 32.00};
4+
}
5+
}

0 commit comments

Comments
 (0)