Skip to content

Commit

Permalink
Update Main.java
Browse files Browse the repository at this point in the history
  • Loading branch information
KhaledAshrafH committed May 24, 2023
1 parent a7fd451 commit 73d53eb
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/Main.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import java.io.BufferedWriter;
import java.io.File;
import java.lang.reflect.Array;
import java.io.BufferedReader;
import java.io.IOException;
import java.nio.charset.Charset;
Expand Down Expand Up @@ -42,8 +41,8 @@ public void writeLinesToCSVFile(String path, String... lines) throws IOException
}

public static void main(String[] args) throws IOException {
String dirPath = "C:\\Users\\5aleda4rf\\IdeaProjects\\students_registration_system\\app\\data\\batch";
String filePathStr = "C:\\Users\\5aleda4rf\\IdeaProjects\\students_registration_system\\app\\data\\batch\\database.csv";
String dirPath = "/app/data/batch";
String filePathStr = "/app/data/batch/database.csv";
while (true) {
System.out.println("1- Add student data\n" +
"2- Add batch students data\n" +
Expand Down Expand Up @@ -87,10 +86,8 @@ public static void main(String[] args) throws IOException {
System.out.println("System closed Successfully.");
break;
} else {
System.out.println("This number not valid ... Enter correct number!");
System.out.println("This number not valid .. Enter correct number!");
}
}
List<String> list = new CSVFileHelper().readLinesFromCSVFile(filePathStr);
System.out.println(list.get(3));
}
}

0 comments on commit 73d53eb

Please sign in to comment.