Results 1 to 5 of 5
Thread: Char replace
- 06-08-2011, 11:55 AM #1
- 06-08-2011, 12:38 PM #2
- Join Date
- Jan 2011
- Location
- Richmond, Virginia
- Posts
- 3,069
- Blog Entries
- 3
- Rep Power
- 7
Have you tried
You can also split the string on ":" and the build the new string with a loop and string builder.Java Code:time = time.replace(":", "");
Just remember, strings are immutable.Last edited by sunde887; 06-08-2011 at 12:41 PM.
- 06-08-2011, 01:43 PM #3
Thanks sunde, using time.replace(':',''); it doesn't work but it works using "".
Susanna
- 06-08-2011, 02:04 PM #4
- Join Date
- Jan 2011
- Location
- Richmond, Virginia
- Posts
- 3,069
- Blog Entries
- 3
- Rep Power
- 7
- 06-08-2011, 02:06 PM #5
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,394
- Blog Entries
- 7
- Rep Power
- 17
Similar Threads
-
concatenate two char into one char
By nadissen in forum EclipseReplies: 3Last Post: 04-06-2011, 02:40 PM -
searching char array with another char array for full word matches
By karunabdc in forum New To JavaReplies: 2Last Post: 03-08-2011, 06:20 AM -
check a string char by char
By Sotsiak in forum New To JavaReplies: 2Last Post: 10-23-2010, 09:24 PM -
replaceALL(char oldChar, char newChar) method
By arson09 in forum New To JavaReplies: 0Last Post: 04-28-2010, 05:48 AM -
drawing char by char with Graphics
By diggitydoggz in forum New To JavaReplies: 5Last Post: 12-27-2008, 12:49 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks