* If you got this warning: no newline at end of file. in NetBeans, it’s naturally. do not be afraid, here is the solution:
Open the file in an editor, go to the last line of the file, and hit enter to add a blank line to the end of the file. 🙂
Though, besides that, you should be using #include <iostream>
instead of <iostream.h>. Then put in a “using std::cout;” after
it.

If you see squares when type in Chinese, you should do the following.
1. mkdir JAVA_HOME/jre/lib/fonts/fallback (fallback usually isn’t exists, so you have to create it).
2. copy the font file in /usr/share/fonts/zh_CN/TrueType to fallback directory.
3. restart NetBeans, you’ll see the change.