Originally posted by Anand Karia:
100001,450
how can i get data i.e 450 from this vactor that appear after comma.
-Retrieve the whole element from the vector first.
-Use
String's substring() method and indexOf() method to cut the part after the comma.
Anand, BTW, this kind of question is not that advance... Your post will sonn be moved to
Java in General (beginner) or
Java in General (intermediate) Hope my suggestion helps...
Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0