This question has already been answered:
I work in NeatBeans
When I assign a value to a variable of type String in Russian, in the output window, instead of this, the values show question marks:
ввод: русс вывод: ???? I changed the encoding from UTF-8 to windows-1251, but nothing has changed
here is the code
Scanner input = new Scanner(System.in); System.out.print("ввод "); String s1 = input.nextLine(); System.out.print("\nВывод "+s1); UPD: There is a solution to the problem (you need to change something in the settings), but I do not remember it. A much better solution is to switch to IntelliJ IDEA.