Java中char 轉化爲int 的兩種方法

今天機試過程當中遇到一個問題: 如何把 char ‘9’ 轉爲 int 9, 你們應該知道,不能直接轉化,那樣獲得是‘9’的Ascii. 以下面:html      public class IntAndCharConvertor { public static void main(String[] args) { char numChar = '9'; int intNum = (i
相關文章
相關標籤/搜索