Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Java by Eugene Saun ( 15 years ago )
import java.io.*;
import java.io.IOException;
public class Console {
public static void main(String[] args) {
while(true) {
try {
String i = new String("");
int b;
while ((b = System.in.read()) != -1) {
char c = (char) b;
if (c != '\n') i += String.valueOf(c);
else break;
}
System.out.println("Echo: " + i);
i = null;
} catch (IOException e) {
System.err.println("Error reading from user");
}
}
}
}
Revise this Paste
Children: 31637