if (num1.nextToken() == string2)

And use the equals method when comparing String objects.