Thank you, however I put r.openFile() in it, but I still get the same exception.
Type: Posts; User: kvmeurs
Thank you, however I put r.openFile() in it, but I still get the same exception.
When I run class Programmalijst, I get a NullpointerException.
It states that my x.hasNext() is null, I dont know why. Im a beginner in Java.
import java.util.*;
import java.io.File;