I have long String like KA01F332-9:25,KA01F212-9:27,KA01F242-9:35,KA01F232-9:45,. These are combination of vehicle no and time. now I want to replace the time of KA01F242 to 10:20 How can I do this.
So far I hav done this.
String busEAT=KA01F332-9:25,KA01F212-9:27,KA01F242-9:35,KA01F232-9:45,;
busEAT.subString(busEAT.indexOf(vno),busEAT.indexOf(','));
but I am not getting the exact value .and it has to be done dynamically can any one help me in this.
+9and+13dont work for me. I want it has to be dynamic, so num might be vary . .KA01F242-and this is fixed according to your requirement