I am trying to compile the following code but I keep getting the error.
Cannot find symbol method toCharacterArray(string)
Cannot find symbol method writeSuccess(int,char[],char[])
public class ControlFlow { char[] alphabet = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'}; public void start(){ char[] sentenceToTest = toCharacterArray("the quick red fox jumps over the lazy brown dog"); char[] missingLetters = new char[26]; int numOfMissingLetters = 0; for(int i=0; i < alphabet.length; i++){ char letterToFind = alphabet[i]; if(hasLetter(letterToFind, sentenceToTest)){ missingLetters[numOfMissingLetters] = letterToFind; numOfMissingLetters++; } } writeSuccess(numOfMissingLetters,missingLetters,sentenceToTest); } public boolean hasLetter(char aLetter, char[] aSentence) { boolean found = false; int position = 0; while(!found){ if(aLetter == aSentence[position]){ found = true; }else if(position == aSentence.length - 1){ break; }else{ position++; } } return found; } }