Results 1 to 3 of 3
- 02-02-2010, 02:31 PM #1
Member
- Join Date
- Feb 2010
- Posts
- 1
- Rep Power
- 0
how to convert * into : using java
Hello All,
I am very newbie to Java programming. I have a java variable with the following data,
String data = "231.24.155.162,2620*0*180";
I would like to convert the * here into : symbol and print the changed valued in variable data.
Could you please help me how to go get this done. Your help will be highly appreciated.
Expected output:
System.out.println ("data is" + data);
data is 231.24.155.162,2620:0:180
Thanks,
Ricks
- 02-02-2010, 04:12 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,603
- Blog Entries
- 7
- Rep Power
- 17
Have you read the API documentation for the String class? It has quite a bit of 'replace' methods available. At least one could do the job for you.
kind regards,
Jos
- 02-02-2010, 04:57 PM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Search on our forum at least. You can find a lots of related threads.
Similar Threads
-
Library - convert Java to UML
By johnny in forum Advanced JavaReplies: 2Last Post: 10-22-2009, 04:14 PM -
Convert .java to .exe
By susan in forum New To JavaReplies: 6Last Post: 02-11-2009, 06:47 AM -
Convert XML file into DTD using Java
By veera in forum XMLReplies: 0Last Post: 12-19-2008, 05:38 AM -
Convert java to .exe
By heartysnowy in forum New To JavaReplies: 13Last Post: 11-21-2008, 08:16 AM -
convert VB6 applications to Java
By bbq in forum New To JavaReplies: 1Last Post: 07-05-2007, 03:57 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks