Search:

Type: Posts; User: SeanEE89

Search: Search took 0.09 seconds.

  1. Replies
    9
    Views
    1,199

    Re: Converting letter casing in strings

    String input = "little";

    for(int i = 0; i < input.length(); i++){

    else if(input.charAt(i) == 'l'){

    output = input.replace('l', 'L');

    }//end l to L...
  2. Replies
    9
    Views
    1,199

    Re: Converting letter casing in strings

    How could i use the toUpperCase method to accomplish this?

    As for using subStrings would I have to use two incase I were to enter a word where the 'L' might be inside of the given word like if I...
  3. Replies
    9
    Views
    1,199

    Re: Converting letter casing in strings

    What methods would I have to use in order to accomplish this?

    If this is not possible why is there a replace method for characters? Just wondering, because the examples I've seen of it lead me to...
  4. Replies
    9
    Views
    1,199

    Re: Converting letter casing in strings

    You're close, but I am aware of the toUpperCase method. I'm trying to convert a specific character though; not an entire string of characters. If I were to enter the word "laugh" I would want it to...
  5. Replies
    9
    Views
    1,199

    I will give it a look when I get to a computer...

    I will give it a look when I get to a computer thanks!! if anyone else has any feedback or the answer to my question I would appreciate it if they'd chime in. Other resources like the API would be...
  6. Replies
    9
    Views
    1,199

    Converting letter casing in strings

    I am trying to figure out how to alter specific characters in a string. Say I were to enter a string in that contains a lowercase "i".
    How could I command java to convert the lowercase "i" to an...
Results 1 to 6 of 6