...

View Full Version : Simple Algorithim



java_jenius
08-22-2004, 03:19 PM
re: easter sunday app

its nearly done, just one problem at the end regarding the changing of months

---------------------------------------------

if(East<=31)
{
System.out.println("Easter Sunday is March" +East);
}
else;
{
System.out.println("Easter Sunday is April" +East-31);
}

the red bit is highlighted and says "The operator named - is not defined for the argument type(s) java.lang.String, int"

wots this?!? its the only thing holding me back from finishing this app!

Willy Duitt
08-22-2004, 03:43 PM
i wuld think u r clever enof to take the hint offered here (http://www.codingforums.com/showthread.php?t=43470) and realize u r posting in the wrong forum... :rolleyes:

.....Willy



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum