public class NewAge
{
int currYear, yearBorn, newAge = 0;
final static String DAY = "09", MONTH = "July";
String name = "Kay Alies";
public void calcAge(int currYear, int yearBorn)
{
if (yearBorn <= currYear)
{
this.newAge = currYear - yearBorn;
System.out.println(this.name + " turns " + this.newAge + " on " + this.DAY + " " + this.MONTH + " " + currYear);
}
else
{
System.out.println("You can only gets older, not younger! :PPPP");
}
}
public static void main(String[] args)
{
NewAge na = new NewAge();
na.calcAge(2010, 1987);
}
}





*umaru dghani* said...
ReplyDeletewhoaaahhhhhh
so sweeetttttttttttttt
love it~~~~~~~
shyg kamoooo sgtttttttt(^,~)
heeee..
ReplyDeleteshyg kamo jugaks!!!!
^_^ ~