Results 1 to 3 of 3

Thread: Any JAVA gurus here?

  1. #1
    Join Date
    18th March 2007 - 15:50
    Bike
    2015 f800gt
    Location
    Auckland
    Posts
    88

    Any JAVA gurus here?

    Im working on an assignment and cant quite figrure out how to complete one of the steps. any help would be much appreciated.

    Essentially I need to know if there is a command that will stop the program at a certain point if required. That is, once certain conditions are met it will not continue through to the next instruction. I can provide details if required.

  2. #2
    Join Date
    6th June 2007 - 16:49
    Bike
    2007 Hyosung Aquila GV250
    Location
    NZ
    Posts
    233
    Quote Originally Posted by Delerium View Post
    Im working on an assignment and cant quite figrure out how to complete one of the steps. any help would be much appreciated.

    Essentially I need to know if there is a command that will stop the program at a certain point if required. That is, once certain conditions are met it will not continue through to the next instruction. I can provide details if required.
    You may have more luck on something like geekzone but anyway...
    System.exit(0) (where 0 is the exit code obviously).

  3. #3
    Join Date
    26th October 2007 - 12:49
    Bike
    GSXR600 k7, FXR Bucket
    Location
    Auckland
    Posts
    733
    Blog Entries
    2
    Wow - way off topic

    But, If you just want to stop execution you might want something like this...

    if(someConditionMe)
    {
    System.exit(0);
    }

    Hope that helps.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •