Skip to content

Commit

Permalink
trivial (remove one char '`')
Browse files Browse the repository at this point in the history
如题
  • Loading branch information
fanofxiaofeng authored Aug 25, 2017
1 parent 805d737 commit ab5ef7d
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 ab5ef7d

Please sign in to comment.