jump to args-field in Main method
Hello guys,
i have a Main method something like this:
Code:
public static void main(String[] args) throws IOException {
...args[0]=String x; ...
}
Is it possible to return to the point where i declared args[0] if the IOException is caught?
So kinda like this:
Code:
catch (IOException e){
Main.main(args[0]);
}
This not working! I get an Error.
And if i do this:
The whole Main method is starting again.
But i would like to go to a certain point in the Main method or call a variable if the Exception is thrown.