Advertisement
Guest User

Testklasse

a guest
Dec 12th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.62 KB | None | 0 0
  1. package Blatt04;
  2.  
  3. public class Testklasse {
  4.  
  5.     public static void main(String[] args) {
  6.         PostzentraleNeu info = new PostzentraleNeu();
  7.         Postbot neeuu = new Postbot("Maxi");
  8.         // info.addPostbote("Max", "Postbote");
  9.         // info.addPostbote("Phillip", "ABCD");
  10.         // info.addPostbote("Lars", "Postbot");
  11.         // info.addPostbote("Klaus", "Ansager");
  12.         // info.addPostbote("Michael", "Postbot");
  13.         // neuu.setMessage("Hallo", "");
  14.         neeuu.setMessage("Hallo");
  15.         neeuu.whisper();
  16.         try {
  17.            
  18.             info.startGame("Hallo wie geht es dir?");
  19.  
  20.         } catch (NotReadyException e) {
  21.             System.err.println(e);
  22.  
  23.         } // finally
  24.  
  25.     }
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement