The java.io.Console class requires there to be a Console device (window). How can I debug if I am using this class? I'm using netbeans IDE.
UPDATE: I figured out how to wrap Sysytem.in with a InputStreamReader and then a BufferedReader. This works even without a Console window, so I can use it instead.
If anyone still answers the question of how to debug using the Console class I'd still be interested though!