handle exit
This commit is contained in:
parent
dc4350b533
commit
cce9091e36
1 changed files with 6 additions and 2 deletions
|
@ -20,8 +20,11 @@ public class RovinePerduteMain {
|
|||
public static void main(String[] args) {
|
||||
int valore = ottieniValore();
|
||||
|
||||
RovinePerduteHandler rph = new RovinePerduteHandler(String.format("test_file/PgAr_Map_%d.xml", valore));
|
||||
rph.generaFileXML();
|
||||
|
||||
if (valore != -1) {
|
||||
RovinePerduteHandler rph = new RovinePerduteHandler(String.format("test_file/PgAr_Map_%d.xml", valore));
|
||||
rph.generaFileXML();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -39,6 +42,7 @@ public class RovinePerduteMain {
|
|||
case 4 -> valore = 200;
|
||||
case 5 -> valore = 2000;
|
||||
case 6 -> valore = 10000;
|
||||
case 0 -> valore = -1;
|
||||
}
|
||||
return valore;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue