在Java SE 7 版之前,switch 只能接受數字型別的case 判斷,可是我們常常會需要做字串的判斷,只好用一堆的if-else 來處理,現在Java SE 7 裡switch ...
確定! 回上一頁