The binary operator: >= can not be used to compare a String to an int. One solution would be to convert the String to an int and then compare two int values.