Can't type in the console
1 posts in topic
Flat View  Flat View

Posted By:   Anonymous
Posted On:   Saturday, October 15, 2005 02:19 PM

Hey I am developing a simple command line programm right now and it is supposed to take input from System.in but for some reason I can't type in Eclipses console. I am running Eclipse 3.1.1

Cheers Mike

Re: Can't type in the console

Posted By:   Anonymous  
Posted On:   Monday, October 17, 2005 02:26 AM

With Version: 3.1.0 Build id: I20050627-1435 it works for me. Could you try:

public static void main(String[] args) {
try {
int i = System.in.read();
System.out.println("after - " + i);
} catch (IOException e) {
// TODO Auto-generated catch block

Start the program (ConsoleView opens, printing "before"), click into the console view and type in "8" (should be a different color) and RETURN (should print "after - 56").
About | Sitemap | Contact