Results 1 to 4 of 4

Thread: Format a string

  1. #1

    Thread Starter
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Resolved Format a string

    How do one format a string in java. in vb you could say something like format(string, format)

    I convert a double to string using tostring.
    Now I want to format the string with thousands and decimal seperators.

    Kinda urgent. No problem in vb, but want to supply the answer to this question in Java, as it is for a job....
    Last edited by StrangerInBeijing; Apr 4th, 2005 at 11:42 PM.
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  2. #2
    Member
    Join Date
    Mar 2005
    Posts
    56

    Re: Format a string

    Maybe this will help you along...
    Format String

  3. #3

    Thread Starter
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: Format a string

    Hi,

    Thanx Brandoe, that helped. Played around until I understood it, and send my own simplified solution. (had to use notepad and command prompt!) and hope they are satisfied.

    Cheers!
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  4. #4
    Member
    Join Date
    Mar 2005
    Posts
    56

    Re: Format a string

    Sweet! Glad it helped

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width