mirror of
https://github.com/2martens/uni.git
synced 2026-05-06 11:26:25 +02:00
10 lines
248 B
Java
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);
|
|
}
|
|
} |