Bookmark Topic Watch Topic
  • New Topic

replace the value of delimiter in string in java  RSS feed

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Report post to moderator
how can I change the value of
String str = "1234|U||45|||"
into
String str = "1234|U| |45| | |"

Please provide some solution.
 
Rancher
Posts: 1816
15
Android Eclipse IDE Java Java ME
  • Mark post as helpful
  • send pies
  • Report post to moderator
Does this help? Not tested though

 
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
Moving this to Beginning Java
 
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
This is also a duplicate topic...

http://www.coderanch.com/t/626567/java/java/String-conversion


Please CarefullyChooseOneForum only when creating topics.

Henry
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!