|
-
August 22nd, 2007, 04:27 AM
#1
help needed
Hi to all members,I just wrote my first java program, it compiles and runs and all, but the console window closes too quickly u can hardly see the output.How can i rectify that?
-
August 22nd, 2007, 07:12 AM
#2
Re: help needed
Get a better compiller. I use JCreator and it keeps any information up there for you to review.
Or, if you don't want to change, set it to ask for input at the end of the code (as a test, remove it later).
Code:
Scanner input = new Scanner(System.in);
int askForInput = input.nextInt();
Use that and it will just sit there waiting for input, and not close.
-
August 22nd, 2007, 03:01 PM
#3
Re: help needed
 Originally Posted by omgwtfbbq9999
Get a better compiller. I use JCreator and it keeps any information up there for you to review.
It's not a compiler, it's an IDE (Integrated Development Environment). The compiler is not relevant to this problem.
I may sound pedantic, but then I'm a programmer...
The first step towards wisdom is calling things by their right names...
Chinese proverb
Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|