A webcomic of romance, sarcasm, math, and language.
Special 10th anniversary edition of WHAT IF?—revised and annotated with brand-new illustrations and answers to important questions you never thought to ask—coming from November 2024. Preorder here!
class Ball extends Throwable {}
class P {
P target;
P(P target) {
this.target = target;
}
void aim(Ball ball) {
try {
throw ball;
}
catch (Ball b) {
target.aim(b);
}
}
public static void main(String[] args) {
p parent = new P(null);
p child = new P(parent);
parent.target = child;
parent.aim(new Ball());
}
}
{{Title text: I'm trying to build character but Eclipse is really confusing.}}
xkcd.com is best viewed with Netscape Navigator 4.0 or below on a Pentium 3±1 emulated in Javascript on an Apple IIGS at a screen resolution of 1024x1. Please enable your ad blockers, disable high-heat drying, and remove your device from Airplane Mode and set it to Boat Mode. For security reasons, please leave caps lock on while browsing.