It would have helped to have the code posted but I'll post some code with the bufferedReader that does work to hopefully help you...
import java.io.*;
class Poop
{
public static void main(String[] args) throws IOException
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String inData;
int count = 0;
do
{
System.out.println("Enter some text");
inData = br.readLine();
count++;
}
while (!inData.equals(""));
System.out.println("You were promted: " + count + " times");
}
}
}
server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
What version of Java are you using? 1.4.2 0r 1.5.0
Jeremy
As he stated above it might be the sdk your using. If your using an older version like me you will use the BufferedReader. If you use sdk 1.5 they got some Scanner() method or something in place of the BufferedReader.
server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20