I have a text file which saves my staff details, I want to store the id for future use after login.
I've tried declaring the id after login as split[0]
but when i call it, it returns null.
This is within the login method in the file TypoStaff
String id = split[0];
This is my method of calling
TypoStaff s = new TypoStaff();
System.out.println(s.id);
I hope to get the result of 0 but I keep getting null.