Page 2 of 2 FirstFirst 12
Results 21 to 24 of 24
Like Tree1Likes

Thread: Convert some characters of a string to uppercase

  1. #21
    evaduli is offline Member
    Join Date
    Mar 2012
    Posts
    12
    Rep Power
    0

    Default Re: Convert some characters of a string to uppercase

    yes i wrote it on the post #13

  2. #22
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,651
    Blog Entries
    7
    Rep Power
    21

    Default Re: Convert some characters of a string to uppercase

    Quote Originally Posted by evaduli View Post
    yes i wrote it on the post #13
    You're almost there: convert your String to an array of chars (see the String class again) and convert the char at position #i to uppercase if i == 0 or if the char at position #i-1 happens to be a space.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #23
    evaduli is offline Member
    Join Date
    Mar 2012
    Posts
    12
    Rep Power
    0

    Default Re: Convert some characters of a string to uppercase

    yes, i wrote it on the post#13

  4. #24
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,559
    Rep Power
    25

    Default Re: Convert some characters of a string to uppercase

    Now you need to design all the steps the program must take to solve the problem. Make a list of the steps that the code needs to do.
    See post #10 for some ideas.
    If you don't understand my response, don't ignore it, ask a question.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Need help with convert to uppercase program!
    By ultimashadow in forum New To Java
    Replies: 3
    Last Post: 01-31-2012, 09:49 AM
  2. Replies: 1
    Last Post: 09-17-2010, 12:40 PM
  3. Automatic convert to uppercase in keyevents
    By ashin in forum SWT / JFace
    Replies: 4
    Last Post: 08-09-2010, 01:59 PM
  4. Convert integers into ACSII characters.
    By Valkyrie in forum New To Java
    Replies: 4
    Last Post: 11-24-2009, 02:39 AM
  5. String uppercase/lowercase
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-19-2007, 09:22 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
  •