mirror of
https://github.com/robertvokac/time-calc.git
synced 2025-03-25 07:27:49 +01:00
Added several improvements IV
This commit is contained in:
parent
28ea4fa778
commit
325284c60b
@ -16,11 +16,12 @@ import java.util.Set;
|
|||||||
public class Main {
|
public class Main {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
while(true) {run(args);
|
while(true) {run(args);
|
||||||
System.out.println(("Do you want to continue (y/n)?"));
|
|
||||||
Scanner scanner = new Scanner(System.in);
|
|
||||||
if(args.length == 0) {
|
if(args.length == 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
System.out.println(("Do you want to continue (y/n)?"));
|
||||||
|
Scanner scanner = new Scanner(System.in);
|
||||||
|
|
||||||
if(!scanner.nextLine().equals("y")) {
|
if(!scanner.nextLine().equals("y")) {
|
||||||
System.out.println("Exiting \"Time Calc\".");
|
System.out.println("Exiting \"Time Calc\".");
|
||||||
break;
|
break;
|
||||||
@ -114,6 +115,12 @@ public class Main {
|
|||||||
printPercentToAscii(done);
|
printPercentToAscii(done);
|
||||||
}
|
}
|
||||||
if(hourRemains <= 0 && minuteRemains <= 0) {
|
if(hourRemains <= 0 && minuteRemains <= 0) {
|
||||||
|
System.out.println("Congratulation :-) It is the time to go home.\n\n");
|
||||||
|
try {
|
||||||
|
Thread.sleep(10000);
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user