Friday, July 24, 2009

Frivolous Friday, 07.24.2009: If Shakespeare had been a Java programmer

import Mind;
import Armament;
import OutrageousFortune;
import Sling;
import Arrow;
import Trouble;

public class Hamlet()
{
. . .

private void soliloquy()
{
OutrageousFortune oF;
Mind mind;
Armament[] arms;
Trouble[] sea;

. . .

if(!2b)
{
mind.suffer(oF.getSlings(), oF.getArrows());
}
else
{
for(int i : arms)
{
for(int j : sea)
{
arms[i].takeUp(sea[j]);
}
}
}
return;
}

private class Mind
{
public String suffer(Sling[] slings, Arrow[] arrows)
{
System.out.println("Owwie.");
return new String("nobler");
}
}

public class Armament
{
public takeUp(Trouble[] sea)
{
for(int i : sea)
{
oppose(sea[i]);
}
return;
}

private oppose(Trouble trouble)
{
trouble.end();
System.out.println("Buh-bye...");
return;
}
}
}