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...
Type: Posts; User: SeanEE89
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...
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...
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...
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...
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...
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...