Skip to content

Commit

Permalink
feat: Changed method name to reflect the class materials
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex4386 committed Mar 11, 2024
1 parent 7ce43da commit 8be22f2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/me/alex4386/gachon/sw14462/day03/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

public class Main {
public static void main(String[] args) {
System.out.println("Exercise 2_1. Read a four-digit integer and display one digit per line");
Main.exercise2_1();
System.out.println("Exercise 2_1a. Read a four-digit integer and display one digit per line");
Main.exercise2_1a();

System.out.println("");
System.out.println("Exercise 2_2. Convert Fahrenheit to Celsius");
Main.exercise2_2();
System.out.println("Exercise 2_1b. Convert Fahrenheit to Celsius");
Main.exercise2_1b();
}

public static void exercise2_1() {
public static void exercise2_1a() {
Scanner scanner = new Scanner(System.in);

System.out.print("Enter a four-digit integer: ");
Expand All @@ -28,7 +28,7 @@ public static void exercise2_1() {
}
}

public static void exercise2_2() {
public static void exercise2_1b() {
Scanner scanner = new Scanner(System.in);

System.out.print("Enter a temperature in Fahrenheit: ");
Expand Down

0 comments on commit 8be22f2

Please sign in to comment.