Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String myTempArray[];
- //reading all the lines in the input file
- while (input.hasNext()) {
- //storeing each line of the input file in the variable LINE.(changes with each iteration)
- line = input.nextLine();
- myTempArray = line.Split(" ");
- if (lineCounter == 0) {
- _setNumberOfCourses(line);
- } else if (lineCounter == 1) {
- _SetNumberOfStudents(line);
- } else if ( myTempArray[0].equals("Add_Course") ) {
- _addCourse( myTempArray );
- } else if ( myTempArray[0].equals("Add_ExamType") ) {
- _addExamType( myTempArray );
- //ETC. Continue like so
- } else {
- _addMarks( myTempArray );
- }
- //System.out.println(line);
- lineCounter++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement