存為Math.java */ class Math { static Integer max(Integer a, Integer b) { return a > b ? a : b; } } 靜態方法得定義在類別之中,如此一來,就可以在其他地方透過 ...
確定! 回上一頁