This commit is contained in:
Daniel Bulant 2025-11-28 01:06:54 +01:00
parent 21fe12aa34
commit f16ba2ddd7

View file

@ -48,11 +48,17 @@ public class Printer {
} }
public static void main(String[] args) { public static void main(String[] args) {
while(true){
try { try {
print(); print();
System.out.println("Printed successfully, thanks for your patronage."); System.out.println("Printed successfully, thanks for your patronage.");
break;
} catch (Exception e) { } catch (Exception e) {
System.err.println(e.getMessage()); System.err.println(e.getMessage());
try {
Thread.sleep(1000);
} catch(Exception interrupt) {}
}
} }
} }
} }