Thread
:
Java split problem
View Single Post
12-19-2012, 07:02 PM
PM User
|
#
4
Fou-Lu
God Emperor
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,662
Thanks: 4
Thanked 2,452 Times in 2,421 Posts
That will always show a failure; you are comparing a string to an integer which is automatically false.
Cast id to a string or the string to an Integer and then check for equals.
Fou-Lu
View Public Profile
Find More Posts by Fou-Lu