Skip to content

Commit a2d227d

Browse files
committed
ConvertTemp class
1 parent 242cafa commit a2d227d

File tree

7 files changed

+68
-1
lines changed

7 files changed

+68
-1
lines changed

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/compiler.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package io.github.project516.JavaTemperatureConverter;
2+
3+
/** Convert Temp */
4+
public class ConvertTemp {
5+
/** Celsius to Fahrenheit */
6+
public Double cToF(Double c) {
7+
return (c * 9.0 / 5.0) + 32.0;
8+
}
9+
10+
/** Fahrenheit to Celsius */
11+
public Double fToC(Double f) {
12+
return (f - 32.0) * 5.0 / 9.0;
13+
}
14+
}
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
package io.github.project516.JavaTemperatureConverter;
22

3+
import io.github.project516.jlibutils.SystemInfo;
4+
35
public class Main {
6+
7+
static SystemInfo info = new SystemInfo();
8+
49
public static void main(String[] args) {
5-
System.out.println("ON");
10+
11+
System.out.println(info.vendor());
612
}
713
}

0 commit comments

Comments
 (0)