2007年8月10日

          JAVA中常用數(shù)據(jù)類型轉(zhuǎn)換函數(shù):

          string->byte
          Byte static byte parseByte(String s) 

          byte->string 
          Byte static String toString(byte b) 

          char->string 
          Character static String to String (char c) 

          string->Short 
          Short static Short parseShort(String s) 

          Short->String 
          Short static String toString(Short s) 

          String->Integer 
          Integer static int parseInt(String s)

          Integer->String 
          Integer static String tostring(int i) 

          String->Long 
          Long static long parseLong(String s) 

          Long->String 
          Long static String toString(Long i) 

          String->Float 
          Float static float parseFloat(String s) 

          Float->String 
          Float static String toString(float f) 

          String->Double 
          Double static double parseDouble(String s)

          Double->String
          Double static String toString(Double d) 

          posted @ 2007-08-10 16:59 fraser 閱讀(296) | 評(píng)論 (1)編輯 收藏


          僅列出標(biāo)題  

          posts - 1, comments - 1, trackbacks - 0, articles - 0

          Copyright © fraser

          主站蜘蛛池模板: 亚东县| 上蔡县| 将乐县| 丰顺县| 无为县| 惠水县| 湖口县| 来宾市| 疏勒县| 彭水| 双城市| 清流县| 民权县| 沅陵县| 南丹县| 芦山县| 菏泽市| 蒙阴县| 陆良县| 宜宾市| 长岛县| 虎林市| 皋兰县| 和平县| 肇东市| 兴隆县| 白朗县| 定陶县| 合水县| 安乡县| 报价| 扶风县| 武安市| 秭归县| 吕梁市| 昌邑市| 巴南区| 柞水县| 当雄县| 新疆| 临安市|