Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update CH16.md
应该不是通过modifiers来判定是否为class的
  • Loading branch information
fanofxiaofeng authored Apr 3, 2017
commit b4fbd0ff4868f499107a1c0744a796d640fe9d02
2 changes: 1 addition & 1 deletion docs/CH16.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public class SimpleClassViewer {

System.out.printf("package %s;%n", p.getName());

// 取得型態修飾,像是class、interface
// 取得型態修飾,像是public、final
int m = c.getModifiers();

System.out.print(Modifier.toString(m) + " ");
Expand Down