We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9d6e92 commit 14430e8Copy full SHA for 14430e8
1 file changed
app/src/main/java/io/github/project516/JavaTemperatureConverter/Runtime.java
@@ -14,13 +14,13 @@ void run() {
14
String input = scan.nextLine().toLowerCase();
15
16
if (input.equals("f")) {
17
- System.out.println("Enter Celcus");
+ System.out.print("Enter Celcus: ");
18
Double cel = scan.nextDouble();
19
- System.out.println(temp.cToF(cel));
+ System.out.println("Farenghit: " + temp.cToF(cel));
20
} else if (input.equals("c")) {
21
- System.out.println("Enter Farenghitght");
+ System.out.print("Enter Farenghitght: ");
22
Double far = scan.nextDouble();
23
- System.out.println(temp.fToC(far));
+ System.out.println("Celcius: " + temp.fToC(far));
24
} else {
25
System.out.println("Invalid input!");
26
}
0 commit comments