Terminate Program command

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vman595
    New Member
    • May 2007
    • 7

    #1

    Terminate Program command

    Hey guys, does anyone know of a command in java that will close down the entire program?

    Thanks
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by vman595
    Hey guys, does anyone know of a command in java that will close down the entire program?

    Thanks
    [CODE=java]System.exit(0);[/CODE]

    Hint: You should make an effort to find out what the 0 is for there and what the other options are.

    Comment

    • vman595
      New Member
      • May 2007
      • 7

      #3
      Originally posted by r035198x
      [CODE=java]System.exit(0);[/CODE]

      Hint: You should make an effort to find out what the 0 is for there and what the other options are.
      Thanks man, I tried System.exit(0); but I forgot the capital previously. =P

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by vman595
        Thanks man, I tried System.exit(0); but I forgot the capital previously. =P
        Yeah, they made the stupid language case sensitive.

        Comment

        Working...