Results 1 to 5 of 5
Thread: String divided issue
- 01-28-2012, 11:11 AM #1
- 01-28-2012, 01:03 PM #2
Re: String divided issue
Look at the String class's methods to find the delimiters and create the substringswithout split
or the StringTokenizer class.
- 01-28-2012, 01:06 PM #3
Re: String divided issue
import java.util.StringTokenizer;
public class StringTokenizerEx {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
String str="$GPRMC,225446,A,4916.45,N,12311.12,W,000.5,05 4.7,191194,020.3,E*68";
System.out.println("----------Split by Cimma ------------------- ");
StringTokenizer st2=new StringTokenizer(str, ",");
while(st2.hasMoreElements()){
System.out.println(st2.nextElement());
}
}
}
- 01-28-2012, 01:42 PM #4
Re: String divided issue
Have you solved your problem?
- 01-29-2012, 06:02 AM #5
Similar Threads
-
String to date conversion issue...
By nikhil.navadiya in forum New To JavaReplies: 5Last Post: 12-21-2011, 11:28 AM -
String object comparison issue
By subith86 in forum New To JavaReplies: 3Last Post: 01-19-2011, 06:18 AM -
Issue with String tokenizer..
By jainanuj82 in forum Advanced JavaReplies: 6Last Post: 06-24-2010, 01:19 PM -
[SOLVED] String Length issue.
By ChrisMayhew in forum New To JavaReplies: 7Last Post: 01-11-2009, 03:16 AM -
Help with a word, if it is divided by spaces
By baltimore in forum New To JavaReplies: 1Last Post: 08-07-2007, 06:31 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks