RosettaCodeData/Task/Program-termination/Java/program-termination-2.java
Ingy döt Net b83f433714 tasks a-s
2013-04-10 23:57:08 -07:00

5 lines
166 B
Java

if(problem){
Runtime.getRuntime().halt(integerErrorCode);
//conventionally, error code 0 is the code for "OK",
// while anything else is an actual problem
}