Nuffnang Ad

Tuesday, March 06, 2007

Endurance

When Sup "grilled" me for the 1st time, out of boredom I wrote a simple "if-else" statement:

if (Sup = rush)
{
full speed at work;
}
else
{
slack and read newspaper;
}

Now the situation is like this:

String Sup_mood = request.getMood(); //getMood is a class with different moods method
String my_mood;


String day = request.getDay();
if (day = "Sat" && day = "Sun")
{
boolean at_work = false;
out.println("Siqi is at home nuaing!")
}
else
{
boolean at_work = true;
if (Sup_mood = Happy)
{
my_mood = "phew!";
}

else if (Sup_mood = "Angry")
{
my_mood = "sad...";
}

else if (Sup_mood = "Crappy")
{
my_mood = "duhz...";
}
else if (Sup_mood = "Suan")
{
my_mood = "tamade, I endure!";
}
out.println("At work = "+ response.getBoolean(at_work);)
out.println("My mood is very"+my_mood);
}

Sup today requested for a movement chart, and I was tasked to do. When I asked if the deadline was this coming Fri, he said, "Whenever you want, since you seem so comfortable with this project now."
I 'd neglected my original project...

No comments: