Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class BaumAVLTest {
- public static void main (String[] args){
- BaumAVL<Integer> baum = new BaumAVL<Integer> ();
- baum.toString();
- baum.add(1);
- baum.toString();
- baum.add(2);
- baum.toString();
- baum.add(3);
- baum.toString();
- baum.add(4);
- String ausgabe = (baum.toString());
- System.out.println(ausgabe);
- if(ausgabe == ("((()1())2())3(()4()))")){
- System.out.println("ok");
- }else{
- System.out.println("noch falsch");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement