Rob Spoor wrote:You're assigning the result of Integer.parseInt to String b, not int x. And please UseCodeTags next time.