Skip to content

Commit

Permalink
Merge pull request #20 from fanofxiaofeng/patch-2
Browse files Browse the repository at this point in the history
trivial (remove one char '`')
  • Loading branch information
JustinSDK authored Aug 26, 2017
2 parents 4d8df3d + ab5ef7d commit 1c09f7a
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 @@ -497,7 +497,7 @@ public class ImportStaticDemo {

如果您想要 "import" 類別下所有的靜態成員,也可以使用 '\*' 字元,例如將範例 9.10 中的 "import static" 改為以下也是可行的:

`import static java.util.Arrays.*;
import static java.util.Arrays.*;

"import static" 語法可以讓您少打一些字,但是您要注意名稱衝突問題,對於名稱衝突編譯器可能透過以下的幾個方法來解決:

Expand Down

0 comments on commit 1c09f7a

Please sign in to comment.