• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 205
  • Last Modified:

Replace "11.1111.1111,00" with "1111111111.00"

Hi,

   i have a String variable and i need replace the value  "11.1111.1111,00" with "1111111111.00" how i do, because the replace sentence not function.  Thanks a lot.
0
jlguerra
Asked:
jlguerra
1 Solution
 
bloodredsunCommented:
try this,

      String num = "11.1111.1111,00" ;
      num = num.replaceAll( "\\." , "") ;
      num = num.replaceAll( "," , ".") ;      
      System.out.println( "num is " + num) ;

outputs:
num is 1111111111.00
0
 
jlguerraAuthor Commented:
Thanks you bloodredsun !!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now