void means the method cannot return any value. if you wish to quit the application with exit code you can use System.exit().
public static void main(String[] args) {
System.exit(10);
}
void means the method cannot return any value. if you wish to quit the application with exit code you can use System.exit().
public static void main(String[] args) {
System.exit(10);
}