註解通過@interface關鍵字進行定義。 1 public @interface TestAnnotation { 2 }. 它的形式跟接口很類似,不過前面多了一個@ 符號。上面的代碼就 ...
確定! 回上一頁