Scroll to see replies
Spoiler
static boolean isLeapYear (int year){
if (...)
return ...;
else
return ...;
}
and then in main, after receiving the year from the user you could have something like:public static void main (String[] args) {
if (isLeapYear(year))
...
else
...
}
Also, I'm not sure whether it's pastebin, but the whitespace seems very off and it's making things hard to follow.static boolean isLeapYear (int year){
if (...)
return ...;
else
return ...;
}
and then in main, after receiving the year from the user you could have something like:public static void main (String[] args) {
if (isLeapYear(year))
...
else
...
}
Also, I'm not sure whether it's pastebin, but the whitespace seems very off and it's making things hard to follow.Last reply 1 month ago
Free website hosting providers with no strings attached?Posted 3 months ago
iDEA silver citizen badge three. Milkshake shack coding problem.Last reply 4 months ago
How do you practice programming java for beginners?Last reply 8 months ago
hows the employment market for tech work in the UK?Last reply 1 month ago
Free website hosting providers with no strings attached?Posted 3 months ago
iDEA silver citizen badge three. Milkshake shack coding problem.Last reply 4 months ago
How do you practice programming java for beginners?Last reply 8 months ago
hows the employment market for tech work in the UK?