DISCLAIMER: I am not a programmer. I work with Java folks, and I don't pretend to be as smart as them. This struck me as a funny idea and I poked through the Java help forums for beginner stuff. If it isn't structurally sound, I'm not surprised. And yeah, pretend I did the indents, cuz I did, but stupid Blogger won't show them.
class IfHadMillionDollars {
public static void main(String [] args {
switch (purchase) {
case 1: System.out.println("house"); break;
case 2: System.out.println("furniture"); // chesterfield or ottoman; break;
case 3: System.out.println("k-car"); // reliant automobile; break;
case 4: System.out.println("your love"); break;
}
void buildTreeHouse(){
if (isHelping){ // effort not as hard
tinyFridge--; // pre-wrapped sausages (bacon == null)
}
}
switch (purchase) {
case 5: System.out.println("fur coat"); // coat == real; break;
case 6: System.out.println("exotic pet"); // llama or emu; break;
case 7: System.out.println("Merrick's remains"); // crazy elephant bones; break;
case 8: System.out.println("your love"); break;
}
void gotoStore(){
if (rentLimo){ // cost is increased
kraftDinner--; // fancy Dijon Ketchup
}
}
switch (purchase) {
case 9: System.out.println("green dress"); // dress == real; break;
case 10: System.out.println("art"); // Picasso or Garfunkel; break;
case 11: System.out.println("monkey"); // I have always wanted a monkey; break;
case 12: System.out.println("your love"); break;
}
System.out.println("I'd be rich.");
}
}
}
No Gifts
2 days ago
2 comments:
That is even funnier than the Police chart.
Why don't they have pre-wrapped bacon? And I do blame them.
I ask myself about pre-wrapped bacon every weekend when I make pancakes and bacon for the boys. The have pre-wrapped biscuits, now--get with the program!
And thanks! It was one of those ideas that got into my head and I had to do something.
Post a Comment