ppj/hai/hello/Kotauki.java

24 lines
496 B
Java
Raw Normal View History

2024-06-13 22:48:56 +02:00
/*
* TASK 9
* archived at https://git.femboy.science/femsci/ppj/src/branch/task/9
* by femsci
*/
package hai.hello;
// meow meow~
public class Kotauki {
public static void main(String[] args) {
Car kitten = new Car(); // kitty car :3
while (true) {
try {
kitten.drive100km();
} catch (NotEnoughGasException ex) {
System.err.println(ex.getMessage());
kitten.fill();
}
}
}
}