Home > Back-end >  Java annotation problem
Java annotation problem

Time:10-01

Look at the second comment, I remove the "a" word cannot execute the program, why? (the first picture is no problem, there is something wrong with the second picture delete "the")

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 write

CodePudding 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
  • Related