hi I know that I have asked pretty much question recently.. I'm learning java myself and hence kinda can't really understand
the isDigit
method..
error is cannot resolve symbol method isDigit(char)
I imported java.lang.*
as well already .
public static boolean DigitValidation(String colour)
{
boolean flag = true;
for (int i =0; i<colour.length();i++)
{
char ch = colour.charAt(i);
if (colour.isDigit(ch))
{
flag= false;
break;
}
else flag = true;
}
return flag;
}