else if (user >= 18 && < 50) should be else if (user >= 18 && user < 50). This is a typical rookie mistake, as it does make sense. However, each side of the || and && operators need to evaluate to...
Type: Posts; User: newbie
else if (user >= 18 && < 50) should be else if (user >= 18 && user < 50). This is a typical rookie mistake, as it does make sense. However, each side of the || and && operators need to evaluate to...
You need to convert the String into a double value. This is easily accomplished using the following method: parseDouble();