Life in the army in Java code
Life in the army in Java code
/**
* description of class LifeInTheArmy.
*
* @Jeries Besharat
* @version 1.0
* Class 'Chores' can be fully realized only by soldiers.
*/
import java.util.Random;
public class LifeInTheArmy extends Chores
{
public static void main(String args[])
{
Chores[] doWhatYouAreToldTo = {fix_something, go_somewhere, make_coffee, bring_candies_from_the_kapsimi, etc.};
boolean hasNotFinishedMylitaryService = true;
Random luckyChore = new Random();
int days = 83;
while(hasNotFinishedMylitaryService)
{
if(days-- > 0)
{
System.out.println("Wake up at 6 AM");
System.out.println("SHAVE your face - ASAP");
System.out.println("Get to your unit");
//Do all the CHORES...
System.out.println("Do: "+ doWhatYouAreToldTo[luckyChore.nextInt(5)]);
System.out.println("...Keep counting down days!");
}
else
{
hasNotFinishedMylitaryService = false; //At Last!!!!
System.out.println("At Last!!!!...And Now??");
}
}
}
}
Saturday, November 12, 2011
By Jc