mirror of
https://github.com/robertvokac/time-calc.git
synced 2025-03-25 07:27:49 +01:00
Added several improvements III
This commit is contained in:
parent
8d7bcf26c4
commit
28ea4fa778
@ -18,6 +18,9 @@ public class Main {
|
|||||||
while(true) {run(args);
|
while(true) {run(args);
|
||||||
System.out.println(("Do you want to continue (y/n)?"));
|
System.out.println(("Do you want to continue (y/n)?"));
|
||||||
Scanner scanner = new Scanner(System.in);
|
Scanner scanner = new Scanner(System.in);
|
||||||
|
if(args.length == 0) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
if(!scanner.nextLine().equals("y")) {
|
if(!scanner.nextLine().equals("y")) {
|
||||||
System.out.println("Exiting \"Time Calc\".");
|
System.out.println("Exiting \"Time Calc\".");
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user