Package Back

  • pacakge用於解決名字衝突或者把一段代碼封裝在包內(與C#的namespace相似)
  • import引入的是該包的類以及接口(並不包括子包)
/* 若有包時Java文件的JDK編譯 */
javac -d
java mypackage.hello
Empty Comments
Sign in GitHub

As the plugin is integrated with a code management system like GitLab or GitHub, you may have to auth with your account before leaving comments around this article.

Notice: This plugin has used Cookie to store your token with an expiration.