Hi everyone
I am having a lot of trouble trying to get the toUpperCase method working. I have basically put a String of text into a character array and I want to convert a certain character in a certain place in the String to uppercase.
Here is what I have:
for (int i = 0; i < Text.length(); i++) {
if (character[i] == LetterFind)
if (Character.isLowerCase(LetterFind))
Text = string.replace(LetterFind, LetterReplace);
Text = string.toUpperCase(LetterFind);
There is a previous bit of code which specifies which characters in the String to do this to, shown here as the variable "LetterFind".
All I get is the error message: cannot find symbol - method toUpperCase(char)
Ignore the other line
Text = string.replace(LetterFind, LetterReplace);
That is a find and replace function I have been using.
Thanks =)