I've been learning java for some months now and i came through this:

> 
> System.exit(**value**);
> 
> 
> 

I think you can use it to test your code depending on what "**value**" you give to it.

e.g if i want to check if a loop was used or worked as it should , i may do:

```
if(value == 1)
{
    System.out.println("Hi");
    System.exit(0);
}

```

But after a bit of testing it came out that i actually cant se the "**value**" after the loop executed.

Am I thinking of this right? Is there any other use of this code?