English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2 answers

Yes, package declaration (other than "unnamed" default) must be the first programmatic statement in your source file (Note: comments are NOT programmatic statements).

2007-03-08 05:11:08 · answer #1 · answered by vincentgl 5 · 0 0

You must prefix all the packages you are importing with the full package directory structure. The only ones you don't have to specify is classes in the java.lang package and any classes already in the package your class is in.

2007-03-05 14:57:36 · answer #2 · answered by huangporules 2 · 0 0

fedest.com, questions and answers