java - Split result not usable on android -
i have string split, works until want use : when use 'for' read have in string table shows want, when use if(mystringtable[1] == "a") isn't true, though saw mystringtable[1] equal "a". string table "static" declared. i'm wondering if there invisible character or has been created split.
in terms of string
s, use .equals()
in order check if string
equal another. if 1 of them character, cast string
using .tostring()
make match approach.
Comments
Post a Comment