Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
Java Coursework
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
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
Simon Barrett
Java Coursework
Commits
cbd02809
Commit
cbd02809
authored
3 years ago
by
Simon Barrett
Browse files
Options
Downloads
Patches
Plain Diff
Final Refactor of LessonReader
parent
eac60ffe
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/LessonReader.java
+9
-0
9 additions, 0 deletions
src/LessonReader.java
with
9 additions
and
0 deletions
src/LessonReader.java
+
9
−
0
View file @
cbd02809
...
...
@@ -6,6 +6,15 @@ import java.util.Scanner;
public
class
LessonReader
{
/*
This class reads a text file and creates a lesson from it. The text file needs to be a certain structure. The structure
is clearly defined in the ReadMe. This class has been designed so that the quiz for a lesson can have a variable amount
of questions and these questions can have a variable amount of answers related to them.
Please Note: If the Text File is not written how it's specified in the ReadMe this class may fail. However, it does
have fall back values so that the user will see that the lesson has not been inputted correctly.
*/
/**
* Converts a text file to an ArrayList<String> line by line, each line being a new entry
* @param fileName In the form "fileName.txt"
...
...
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