CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: help needed

  1. #1
    Join Date
    Aug 2007
    Posts
    23

    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?
    www.coderewind.com
    Best Place to hunt for Code

  2. #2
    Join Date
    May 2007
    Location
    New Minas, NS, Canada
    Posts
    44

    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.

  3. #3
    dlorde is offline Elite Member Power Poster
    Join Date
    Aug 1999
    Location
    UK
    Posts
    10,163

    Re: help needed

    Quote 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
  •  





Click Here to Expand Forum to Full Width

Featured