Advertisement
Guest User

Untitled

a guest
Jun 19th, 2016
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. public class BaumAVLTest {
  2. public static void main (String[] args){
  3. BaumAVL<Integer> baum = new BaumAVL<Integer> ();
  4. baum.toString();
  5. baum.add(1);
  6. baum.toString();
  7. baum.add(2);
  8. baum.toString();
  9. baum.add(3);
  10. baum.toString();
  11. baum.add(4);
  12. String ausgabe = (baum.toString());
  13. System.out.println(ausgabe);
  14. if(ausgabe == ("((()1())2())3(()4()))")){
  15. System.out.println("ok");
  16. }else{
  17. System.out.println("noch falsch");
  18. }
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement