Thanks for the suggestion, i'll try to keep that in mind. ^^
Type: Posts; User: Henry518
Thanks for the suggestion, i'll try to keep that in mind. ^^
Alright, true... I found the problem:
public static boolean hasTeen(int a, int b, int c)
{
if ( a >= 13 && a<= 19 || b >= 11 && b<= 19 || c >= 13 || c<= 19)
{
return true;...
You put "return false" in the wrong position, where the "return true" should be. Try inverting them like this:
public static boolean hasTeen(int a, int b, int c)
{
if ( a >= 13 && a<=...