CodePudding user response:
Coding problem, save the file after code with notepad is gb2312 (the default encoding and operating system), you can use - encoding parameters compilation (javac - encoding utf-8 xx. Java), although the notepad to write code look pretty pack to force, but not really necessary, suggest to learn Java on other editor to edit (notepad + +, sublime does) or directly in the ide (writing code in eclipse, idea),CodePudding user response:
With the idea, how hard a notepad to writeCodePudding user response:
Windows environment need to select when writing code in notepad to save encoding format, just below the file name, the default is Ascii, you tuned into utf-8