|
1234567891011121314151617181920212223 |
- class Oppgave54 {
- public static void main(String[] args) throws Exception {
- Isbod bod = new Isbod();
-
- try {
- bod.ansett("Alice");
- bod.ansett("Bob");
- bod.ansett("Carol");
- System.out.println("Ansatte:");
- bod.printAlleAnsatte();
-
- System.out.println("");
- System.out.println("Gir sistemann sparken.");
- bod.giSistemannSparken();
-
- System.out.println("");
- System.out.println("Ansatte:");
- bod.printAlleAnsatte();
- } catch (Exception e) {
- System.out.println(e.getMessage());
- }
- }
- }
|