ikhmer
asked on
what is splite function in java?
Dears,
Does java has splite function ? eg: i have String myStr="a;b;c;d"
i want to make it into array list splite by ";" and get the last value of this array ==> the result could be "d"
Thanks,
Does java has splite function ? eg: i have String myStr="a;b;c;d"
i want to make it into array list splite by ";" and get the last value of this array ==> the result could be "d"
Thanks,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks all.. :-)
String[] split = myStr.split(";");
String d = split[split.length - 1];
NO POINTS for me. I am just copying what objects said. Full points to objects.
David