private static void menu () {
(the error is here at the private static void menu I have it marked with red )
Error: illegal start of expression
public static void main(String[] args) {
students.put(((long)101010), new HomeStudent("Pisty","Bolt","Oradea","07568478685","mintias@Roehampton.ac.uk",new Date(),-2000,Course.Computing,101010));
students.put(((long)101011), new InternationalStudent("Andreea","Orescu","New York","07654734567","ariesu@Roehampton.ac.uk",new Date(),-5000,Course.Accounting,101011));
students.put(((long)101012), new InternationalStudent("Raluca","Dumitras","New Orlens","07345286427","ralu78@Roehampton.ac.uk",new Date(),-5000,Course.Business,101012));
students.put(((long)101013), new HomeStudent("Filimon","Razvan","Cluj-Napoca","07597153479","filian@Roehampton.ac.uk",new Date(),-2000,Course.Accounting,101013));
menu () ;
private static void menu () {
System.out.println("***********************");
System.out.println(" * Bright Future *");
System.out.println("***********************");
System.out.println("1.Enroll");
System.out.println("2.Pay Fees");
System.out.println("3.List of Students on Course");
System.out.println("4.Change Course");
System.out.println("5.View Students Profile");
System.out.println("Remove Student From A Course");
System.out.println("\t **** Management Reporting ****");
System.out.println("\t Exit");
System.out.print("Enter Option:");
byte option = input.nextByte(); input.nextLine();
What I have tried:
I tried all of the sources that I could find on the internet it seems that I cannot get it