語言

Integer.Decode(String) 方法

定義

將 a String 解碼成 Integer

[Android.Runtime.Register("decode", "(Ljava/lang/String;)Ljava/lang/Integer;", "")]
public static Java.Lang.Integer Decode(string nm);
[<Android.Runtime.Register("decode", "(Ljava/lang/String;)Ljava/lang/Integer;", "")>]
static member Decode : string -> Java.Lang.Integer

參數

nm
String

解碼。String

傳回

一個物件, Integer 持有以下 int 數值 nm

屬性

例外狀況

如果 string 無法解析為整數值。

備註

將 a String 解碼成 Integer。 接受以下文法給出的十進位、十六進位及八進位數字:

<blockquote><dl><dt>可解碼字串:<dd>符號<sub>opt</sub> 小數<數 dd>sign<sub>opt</sub>0xHexDigits<dd>sign sub opt/sub HexDigits dd Sign<sub>opt</sub>0XHexDigits<dd>Sign<sub>opt</sub>#HexDigits<dd>Sign<sub>opt</字幕>0八進位數<dt>簽名:<dd>-<dd>+</dl></blockquote>

進位數十六進位和八進位數字的定義如同節 {

Java 文件 java.lang.Integer.decode(java.lang.String)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於