Results 1 to 6 of 6

Thread: Using String

  1. #1
    nsr2008.mca is offline Member
    Join Date
    Oct 2010
    Posts
    4
    Rep Power
    0

    Default Using String

    Using Strings display like this way

    Here Input is: "Bangalore Chennai"
    Output is :"Bangalore iannehc"

    Any one pls can help for me...


    One more thing is without using "reverse()" method how to display the string as reverse

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,014
    Rep Power
    20

    Default

    What have you tried?
    Where's your code?

    Or are you expecting someone to write this for you?

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,242
    Rep Power
    19

    Default

    Quote Originally Posted by Tolls View Post
    are you expecting someone to write this for you?
    Looks like that.
    Threads

    db

  4. #4
    D4rkNrG's Avatar
    D4rkNrG is offline Member
    Join Date
    Oct 2010
    Location
    Athens , Greece
    Posts
    5
    Rep Power
    0

    Default

    Quote Originally Posted by nsr2008.mca View Post
    Using Strings display like this way
    Here Input is: "Bangalore Chennai"
    Output is :"Bangalore iannehc"

    Any one pls can help for me...
    (If anyone sees this post and thinks its wrong to provide code to other members of the forum tell me please)
    I find your question interesting... thats why i will give you the code i developed :)
    I assume that you always want the last token of your sentence to be reversed.

    Java Code:
    //.. moderator edit: deleted
    Last edited by Fubarable; 10-14-2010 at 01:22 PM.

  5. #5
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,014
    Rep Power
    20

    Default

    Oh for gods sake.

    What do you think?

    Spoon feeding is frowned upon...it is not helpful.

  6. #6
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by D4rkNrG View Post
    (If anyone sees this post and thinks its wrong to provide code to other members of the forum tell me please)
    Full code solutions are usually not helpful.

Similar Threads

  1. Replies: 7
    Last Post: 11-03-2009, 02:18 AM
  2. combine string[] into string like perl's join function
    By tekberg in forum Advanced Java
    Replies: 9
    Last Post: 02-23-2009, 01:05 PM
  3. Replies: 5
    Last Post: 01-11-2009, 10:12 AM
  4. Replies: 0
    Last Post: 11-20-2007, 04:59 PM
  5. Replies: 1
    Last Post: 08-03-2007, 10:52 AM

Posting Permissions

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