Skip to content
Snippets Groups Projects
Commit b9486a75 authored by Johanne Fixdal's avatar Johanne Fixdal
Browse files

Updated imports

parent 8fa440ac
Branches
Tags
No related merge requests found
package edu.ntnu.stud;
import edu.ntnu.stud.commands.*;
import java.time.LocalTime;
import edu.ntnu.stud.commands.Add;
import edu.ntnu.stud.commands.Command;
import edu.ntnu.stud.commands.Exit;
import edu.ntnu.stud.commands.Print;
import edu.ntnu.stud.commands.SearchDestination;
import edu.ntnu.stud.commands.SearchTrainN;
import edu.ntnu.stud.commands.SetDelay;
import edu.ntnu.stud.commands.SetTrack;
import java.util.Scanner;
public class UserInterface {
private static final Command[] COMMANDS = {
......@@ -17,7 +24,6 @@ public class UserInterface {
/**
* Handles user input by presenting a set of options and executing the selected command.
*
*/
public static void start(Register register) {
......
......@@ -29,7 +29,7 @@ public class SetDelay extends Command {
if (trainDeparture.getTrainNumber().equals(chosenTrain)) {
System.out.println("If the train is delayed for more than an hour: press [1]" +
"\n if the train is delayed only for minutes: press [2]");
"\n If the train is delayed only for minutes: press [2]");
switch (InputValidation.intProvider()) {
case 1:
int hours = InputValidation.hoursProvider();
......@@ -44,7 +44,6 @@ public class SetDelay extends Command {
System.out.println("Invalid choice. Please try again.");
break;
}
trainFound = true;
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment