HOME | DD

meahmeah — Recursion
Published: 2008-10-23 03:05:08 +0000 UTC; Views: 121; Favourites: 0; Downloads: 2
Redirect to original
Description class Life
{
int year;
String location;
String job;
String economicStatus;

public Life()
{
year=2008;
location="here";
job="unemployed";
economicStatus="middle class";
}

public int when()
{
return year;
}

public String where()
{
return location;
}

public String what()
{
return job;
}

public boolean rich()
{
return economicStatus.equals("wealthy");
}
}

public class Recursion
{
public static void main(String args[])
{
meaningfulLife(new Life());
}

public static void meaningfulLife(Life yourLife)
{
while(yourLife.what().equals("unemployed")||!yourLife.rich()||!yourLife.where().equals("somewhere nice"))
{
System.out.println("You live the life of a billion other people. Good luck fixing it.");
}
System.out.println("Your life finally has meaning. Congratulations on breaking the infinite loop of humanity.");
}
}
Related content
Comments: 2

isjusterin [2008-10-23 15:18:25 +0000 UTC]

JAVA

👍: 0 ⏩: 1

meahmeah In reply to isjusterin [2008-10-23 22:15:11 +0000 UTC]

yes. I know. ew.

👍: 0 ⏩: 0