Most visited

Recently visited

Added in API level 1

NumberFormatException

public class NumberFormatException
extends IllegalArgumentException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ java.lang.IllegalArgumentException
           ↳ java.lang.NumberFormatException


抛出以指示应用程序试图将字符串转换为其中一种数字类型,但该字符串不具有适当的格式。

也可以看看:

Summary

Public constructors

NumberFormatException()

构造一个没有详细信息的 NumberFormatException

NumberFormatException(String s)

用指定的详细信息构造一个 NumberFormatException

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

NumberFormatException

Added in API level 1
NumberFormatException ()

构造一个没有详细信息的 NumberFormatException

NumberFormatException

Added in API level 1
NumberFormatException (String s)

用指定的详细信息构造一个 NumberFormatException

Parameters
s String: the detail message.

Hooray!