經安全檢測,此網站為安全網站,請放心前往原始網址!

switch 和String / Java入門一般區 / 程式設計俱樂部

2003/6/25 下午 12:49:40 >將字串值先存在陣列之類的地方,經由比對將其轉換成 int 資料,然後再進入 >switch - case 中. 如果想用 switch 的話可以用一些 int 常數 public interface Flag{ public static final int ABC = 1; public static final int DEF = 2;

www.programmer-club.com.tw

網址安全性掃描由 google 提供