row1: "2010-04-21 11:01:35",
row2: "2010-04-22 11:01:58",
row3: "2010-04-23 11:02:21",
row4: "2010-04-24 11:02:42",
row4: "2010-04-24 11:03:28",
row5: "2010-04-25 11:03:51"
i get the data like this
i need to get the hh, mm and ss seperate and compare each row by row the hh mm ss is same or not
i need temp = gpstime[k].split(" ");
please help me
Campbell Ritchie wrote:Why don't you put the Strings into a SimpleDateFormat or similar class, get an instance from that, and separate the time from that? What is wrong with the split() call you are using?
To those interested - this topic has been running for over 5 days and it is still not clear what the OP is trying to do.
Gokul Nanthakumar wrote:if you want to unique data put the result into Set and get the unique result or just want to compare and find the given time is already there are not, put them into hashset or hashmap(according to your requirement) and compare it is already available or not.
please send any eaxmple