1
0
mirror of https://github.com/2martens/uni.git synced 2026-05-06 11:26:25 +02:00
Files
uni/id/blatt5/code/wam/Umrechner.java
2014-05-09 14:39:09 +02:00

10 lines
248 B
Java

public class Umrechner {
public int convertToCelsius(int fahrenheit) {
return Math.round(5.0f / 9.0f * (fahrenheit - 32));
}
public int convertToFahrenheit(int celsius) {
return Math.round(1.8f * celsius + 32);
}
}