Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Train Dispatch System
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johanne Fixdal
Train Dispatch System
Commits
e2758ac6
Commit
e2758ac6
authored
1 year ago
by
Johanne Fixdal
Browse files
Options
Downloads
Patches
Plain Diff
Updated Add name
parent
9732618f
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/edu/ntnu/stud/commands/Add.java
+3
-4
3 additions, 4 deletions
src/main/java/edu/ntnu/stud/commands/Add.java
with
3 additions
and
4 deletions
src/main/java/edu/ntnu/stud/commands/Add.java
+
3
−
4
View file @
e2758ac6
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment