public class Program { public static void main(String[] args) { StringBuilder alphabet = new StringBuilder("абвгдеёжзийклмнопрстуфхцчшщъыьэюя "); String text= "привет меня зовут антон я программист Java"; StringBuilder textResult = new StringBuilder(text); for(int i =0; i< text.length(); i++) { textResult.insert(i, alphabet.indexOf(____text[i]____ // Здесь выдает ошибку Array type expected; found java.lang.String)); } System.out.print(textResult); } } In the code I wrote where this error is and what it writes. The essence of the program is to change the letters in the text to their serial number in the alphabet.