I start the stream and every time it starts, it must check if there is a new line to read from the BufferedReader , although it gets stuck waiting for the line to exist, thereby stopping all the code.
if((inputLine = bufferedReader.readLine()) != null){ System.out.println(inputLine); JOptionPane.showMessageDialog(null, inputLine); }
Is there a better way to check if the text in BufferedReader readable?
source share