University stuff.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Oppgave54.java 515B

1234567891011121314151617181920212223
  1. class Oppgave54 {
  2. public static void main(String[] args) throws Exception {
  3. Isbod bod = new Isbod();
  4. try {
  5. bod.ansett("Alice");
  6. bod.ansett("Bob");
  7. bod.ansett("Carol");
  8. System.out.println("Ansatte:");
  9. bod.printAlleAnsatte();
  10. System.out.println("");
  11. System.out.println("Gir sistemann sparken.");
  12. bod.giSistemannSparken();
  13. System.out.println("");
  14. System.out.println("Ansatte:");
  15. bod.printAlleAnsatte();
  16. } catch (Exception e) {
  17. System.out.println(e.getMessage());
  18. }
  19. }
  20. }