This question has already been answered:
I work in NetBeans
When I assign a value to a String variable in Russian, in the output window, instead of this value, the question marks are shown: input: Russ output: ????
I changed the encoding from UTF-8 to windows-1251, but nothing has changed
вот код Scanner input = new Scanner(System.in); System.out.print("ввод "); String s1 = input.nextLine(); System.out.print("\nВывод "+s1); Just do not offer the code, because I have many other programs, and this is an example.