Type: Posts; User: copeg
if (num1.nextToken() == string2) And use the equals method when comparing String objects.