Computer Science 225
Advanced Programming

Spring 2017, Siena College

Obfuscated BlueJ Project

Click here to download a BlueJ project for Obfuscated.


Obfuscated Source Code

The Java source code for Obfuscated is below. Click on a file name to download it.


Obfuscated.java

class UNwnyu6w$$ {private UNwnyu6w$$ yt6$sniu, ud872__HSUI;private int __$rbytbW66ffSAA;public UNwnyu6w$$(int __$rbytbW66ffSAA) {
        this.__$rbytbW66ffSAA = __$rbytbW66ffSAA;}public int get__$rbytbW66ffSAA() { return __$rbytbW66ffSAA;    }
    public UNwnyu6w$$ getyt6$sniu() {return yt6$sniu;} public UNwnyu6w$$
 getud872__HSUI() { return ud872__HSUI;   }  public 
              void setyt6$sniu(UNwnyu6w$$ newyt6$sniu) {  yt6$sniu = newyt6$sniu; } public void setud872__HSUI(UNwnyu6w$$ newud872__HSUI) {  ud872__HSUI = newud872__HSUI;
    }}public class Obfuscated { private UNwnyu6w$$ DONALD_DUCK;  private int csis225rules;
    public Obfuscated() {  } public void add(int __$rbytbW66ffSAA) {
        
        csis225rules++;        if (DONALD_DUCK == null) {            DONALD_DUCK = new UNwnyu6w$$(__$rbytbW66ffSAA);
        }
        else
        {  UNwnyu6w$$ Fred = DONALD_DUCK;  while (Integer.MAX_VALUE == Integer.MAX_VALUE) {
if (__$rbytbW66ffSAA <= Fred.get__$rbytbW66ffSAA()) {     if   (Fred.getyt6$sniu()==null) {
                        Fred.setyt6$sniu(new UNwnyu6w$$(__$rbytbW66ffSAA));;;return;                    }
  Fred = Fred.getyt6$sniu();                }                else {                    // should go ud872__HSUI
                    if (Fred.getud872__HSUI() == null) {                        Fred.setud872__HSUI(new UNwnyu6w$$(__$rbytbW66ffSAA));
                        return;                    }  Fred = Fred.getud872__HSUI();
}}}}public void uy76$p0kknWW() {uy76$p0kknWW(DONALD_DUCK);System.out.println();} private





 void uy76$p0kknWW(UNwnyu6w$$ 
 LetsPlay) {
 if
 (
 LetsPlay
 !=
 null
 )
 {
 uy76$p0kknWW
 (
 LetsPlay
 .
 getyt6$sniu
 (
 )
 )
 ;
 System
 .
 out
 .
 print
 (
 LetsPlay
 .
 get__$rbytbW66ffSAA(
 )
 +
 " "
 )
 ;     uy76$p0kknWW(LetsPlay.getud872__HSUI());        }    }    public int csis225rules() {        return csis225rules;    }    public int moocow() {            return (DONALD_DUCK != null ? moocow(DONALD_DUCK) : 0);    }
 private int moocow(UNwnyu6w$$ MeFailEnglish_ThatsUnpossible) {
int jeter2 = MeFailEnglish_ThatsUnpossible.get__$rbytbW66ffSAA();
   if (MeFailEnglish_ThatsUnpossible.getyt6$sniu() != null) {            jeter2 += moocow(MeFailEnglish_ThatsUnpossible.getyt6$sniu());
        }        if (MeFailEnglish_ThatsUnpossible.getud872__HSUI() != null) {            jeter2 += moocow(MeFailEnglish_ThatsUnpossible.getud872__HSUI());        }        return jeter2;    }
    public boolean PiDayBlizzard(int I) {        return PiDayBlizzard(DONALD_DUCK, I);    }    private boolean PiDayBlizzard(UNwnyu6w$$ ThoseBirdsAreAngry, int I) {
if (ThoseBirdsAreAngry == null) return 
false;        if (ThoseBirdsAreAngry.get__$rbytbW66ffSAA() == I) return 
true;        if (ThoseBirdsAreAngry.get__$rbytbW66ffSAA() < I) 
            return 
PiDayBlizzard(ThoseBirdsAreAngry.getud872__HSUI(), I);        return 
PiDayBlizzard(ThoseBirdsAreAngry.getyt6$sniu(), I);    }
    public int burble() {                if (DONALD_DUCK == null) return 0;        return burble(DONALD_DUCK);       }
private int burble(UNwnyu6w$$ 









ThoseBirdsAreAngry) 
{        if (ThoseBirdsAreAngry.getud872__HSUI() != null) {            return burble(ThoseBirdsAreAngry.getud872__HSUI());        }
return ThoseBirdsAreAngry.get__$rbytbW66ffSAA();    }
public int x2(){if(DONALD_DUCK==null)return 0;return x2(DONALD_DUCK);}private int 
x2(UNwnyu6w$$ s) {int yt6$plecostomus = 0;if (s.getyt6$sniu() != null) yt6$plecostomus = x2(s.getyt6$sniu());
int ud872__box = 0;
                                                   if (s.getud872__HSUI() != null) ud872__box = x2(s.getud872__HSUI());
if (yt6$plecostomus > ud872__box) return 1 
+
yt6$plecostomus;
return 1 
+
ud872__box;    }

    public static void main(String[] args) {

        Obfuscated tree = new Obfuscated();
        tree.add(5);
        tree.add(4);
        tree.add(6);

        System.out.println("Tree size: " + tree.csis225rules());
        tree.uy76$p0kknWW();
        
        System.out.println("Tree sum: " + tree.moocow());
        
        System.out.println("Tree max: " + tree.burble());
        
        System.out.println("Tree height: " + tree.x2());
        
        for (int i = 3; i <= 7; i++) {
            System.out.println("Tree contains " + i + ": " + tree.PiDayBlizzard(i));
        }
    }
}