Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: How to manipulate a value

  1. #1
    Junior Member
    Join Date
    May 2013
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default How to manipulate a value

    Hi all,
    I'm doing some phone system programming and have a variable that I need to edit. The variable value is a name formatted as "last,first". I want to edit this so that the value becomes "first last". This might be very easy to do, but I know very little about Java programming so please be gentle.


  2. #2
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    609
    My Mood
    Sleepy
    Thanks
    10
    Thanked 93 Times in 86 Posts

    Default Re: How to manipulate a value

    Hi, have a look at the String API doc. split(...) is the one you want to separate first and last.

  3. The Following User Says Thank You to PhHein For This Useful Post:

    joe132 (May 22nd, 2013)

  4. #3
    Junior Member
    Join Date
    May 2013
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: How to manipulate a value

    Thanks, PhHein! That's exactly what I needed.

Similar Threads

  1. How to open and manipulate another program?
    By TKL in forum Object Oriented Programming
    Replies: 6
    Last Post: December 31st, 2012, 06:38 AM
  2. How Manipulate HTTP response?
    By nikos in forum Java Networking
    Replies: 1
    Last Post: October 7th, 2010, 12:22 PM