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

Updated Add name

parent 9732618f
Branches
No related tags found
No related merge requests found
......@@ -3,8 +3,7 @@ package edu.ntnu.stud.commands;
import edu.ntnu.stud.InputValidation;
import edu.ntnu.stud.Register;
import edu.ntnu.stud.TrainDeparture;
import edu.ntnu.stud.TrainDispatchApp;
import java.time.LocalTime;
/**
* The 'Add' class represents a command to add a new train departure to the register.
......@@ -22,7 +21,7 @@ import java.time.LocalTime;
*/
public class Add extends Command {
public Add() {
super("Add", " Add new train departure to the register");
super("Add new train departure", " Add new train departure to the register");
}
/**
......@@ -41,7 +40,7 @@ public class Add extends Command {
System.out.println("Type in departure time");
int hours = InputValidation.hoursProvider();
int minutes = InputValidation.minutesProvider();
LocalTime inputTime = LocalTime.of(hours, minutes);
System.out.println("Type in line");
String line = InputValidation.stringProvider();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment