scanner cant read
why? how do I do?
Scanner a =new Scanner(new File("klasslista.txt"))
be enough to put "klasslista.txt" in a??
- hasNextLine is a method, not a field
- the L in nextline should be capitalized
- equals should be called like obj1.equals(obj2), not obj1.equals.obj2 like you did on line 24
- you never declared the variable "index", but are using it on line 25