System.out.println("\nInsert new attraction\n---------------------------------"); if(choiceAttraction==1) { System.out.println("[Sport]"); System.out.print("ID: "); int SI = input1.nextInt(); System.out.print("Name: "); String SN = input.nextLine(); System.out.print("Operating Hours: "); String SH = input.nextLine(); System.out.print("Main Activity: "); String SA = input.nextLine(); System.out.print("Location: "); String SL = input.nextLine(); System.out.print("Rating: "); double SR = input1.nextDouble(); attraction.add(new Sport(SI, SN, SH, SA, SL, SR));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)