package org.gajedi.converter;
public class LazyToNerd {
public Character lazy;
public Character nerd;
public String levelOfLaziness;
public LazyToNerd(Lazy lazy) {
this.lazy = lazy;
convertToNerd(this.lazy);
}
public void convertToNerd(Lazy lazy) {
if (checkLevelOfLaziness().compareToIgnoreCase("extreme")) {
try {
this.nerd = (Nerd) lazy.deCharacterize();
} catch (DecharaterizationException e) {
kick();
System.err.printStackTrace(e);
}
} else if(checkLevelOfLaziness().compareToIgnoreCase("moderate")) {
try {
this.nerd = (Nerd) lazy.deCharacterize();
} catch (DecharaterizationException e) {
kick();
System.err.printStackTrace(e);
} else {
this.nerd = (Nerd) lazy.deCharacterize();
} catch (DecharaterizationException e) {
System.err.printStackTrace(e);
}
}
}
public String LevelOfLaziness checkLevelOfLaziness() {
Lazy lazy = this.lazy;
if (lazy.alwaysSleep()) {
this.levelOfLaziness = "extreme";
} else if (lazy.mostlySleep()) {
this.levelOfLaziness = "moderate";
} else {
this.levelOfLaziness = "low";
}
return levelOfLaziness;
}
public void kick() {
if (checkLevelOfLaziness().compareToIgnoreCase("extreme")) {
int times = 1;
for (int i = 0; i < times ; i++) {
try {
kickArse & Balls;
if (blocked) {
times = times * 2;
}
} catch (Exception e) {
System.err.printStackTrace(e)
kick();
}
}
} else {
int times = 1;
for (int i = 0; i < times ; i++) {
try {
kickArse;
if (blocked && times = 5) {
this.setLevelOfLaziness = "extreme";
kick();
}
if (blocked) {
times = times * 1.5;
kick();
}
} catch (Exception e) {
System.err.printStackTrace(e)
kick();
}
}
}
}
}
WAIT FOR MORE POSTINGS ON NERD & LAZY java files devine soul.
NepaliSandesh, I will post it in VB sometime later when I will have time to do so. till then learn java.