public class LostEpisode {
boolean addicted;
LostEpisode (boolean addicted) {
this.addicted = addicted;
}
public void watch() {
hurley();
smokeMonster();
ending();
}
private void hurley() {
System.out.println("duuude");
}
private void smokeMonster() {
System.out.println("ticka ticka");
}
private void ending() {
System.out.println("wtf!");
if (addicted != true) {
addicted = true;
}
new LostEpisode(addicted).watch();
}
public static void main (String[] args) {
new LostEpisode(false).watch();
}
}
boolean addicted;
LostEpisode (boolean addicted) {
this.addicted = addicted;
}
public void watch() {
hurley();
smokeMonster();
ending();
}
private void hurley() {
System.out.println("duuude");
}
private void smokeMonster() {
System.out.println("ticka ticka");
}
private void ending() {
System.out.println("wtf!");
if (addicted != true) {
addicted = true;
}
new LostEpisode(addicted).watch();
}
public static void main (String[] args) {
new LostEpisode(false).watch();
}
}