Browse Source

Implemented registerUser Feature in Main class so the Method cann be called

remotes/origin/fdai7780
Tobias Herbert 11 months ago
parent
commit
ef7d53509c
  1. 2
      src/main/java/org/example/Main.java

2
src/main/java/org/example/Main.java

@ -4,6 +4,7 @@ import java.util.Scanner;
public class Main { public class Main {
public static void main(String[] args) {System.out.println("Hello world!"); public static void main(String[] args) {System.out.println("Hello world!");
Administration administration = new Administration();
Scanner scanner = new Scanner(System.in); Scanner scanner = new Scanner(System.in);
boolean exit = false; boolean exit = false;
@ -23,6 +24,7 @@ public class Main {
switch (choice) { switch (choice) {
case 1: case 1:
System.out.println("Register User selected"); System.out.println("Register User selected");
administration.registerUser();
break; break;
case 2: case 2:
System.out.println("Enter Student ID and Course Code to enroll:"); System.out.println("Enter Student ID and Course Code to enroll:");

Loading…
Cancel
Save