Skip to content

Commit

Permalink
Merge pull request #21 from fanofxiaofeng/patch-3
Browse files Browse the repository at this point in the history
file name is wrong
  • Loading branch information
JustinSDK authored Aug 26, 2017
2 parents 805d737 + 7721d7a commit 4d8df3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/CH09.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public class PackageDemo {

在編譯時您使用以下的指令指定編譯過後的類別檔案儲存目錄,'.'表示建立在目前的工作位置:

javac -d . UsePackage.java
javac -d . PackageDemo.java

編譯完成之後,在目前的工作位置中會出現 onlyfun 目錄,而 onlyfun 目錄下會有個 caterpillar 目錄,而 caterpillar 目錄下則有一個 PackageDemo.class 檔案,在編譯完成之後,"package" 的設定會成為類別名稱的一部份,也就是完整的類別名稱是 onlyfun.caterpillar.PackageDemo,所以在執行時要這麼下指令以指定類別名稱:

Expand Down

0 comments on commit 4d8df3d

Please sign in to comment.