This is my real code
import java.lang.String;
class Displayer {
public static void main(char args[]) {
String reply;
do {
System.out.println("HI");
reply = System.in;
} while (reply != "q" && reply != "Q");
}
}
and the error is this
--------------------Configuration: prgm 1 - j2sdk1.4.2_08 <Default> - <Default>--------------------
C:\Program Files\Xinox Software\JCreatorV3LE\MyProjects\1st prgm\displayer.java:7: incompatible types
found : java.io.InputStream
required: java.lang.String
reply = System.in;
^
1 error
Process completed.
I thinks that Im using the System.in the wrong way