Package | Description |
---|---|
java.lang |
Provides classes that are fundamental to the Java programming
language.
|
Modifier and Type | Method and Description |
---|---|
static byte |
Byte.parseByte(String s)
Assuming the specified String represents a byte, returns
that byte's value.
|
static byte |
Byte.parseByte(String s,
int radix)
Assuming the specified String represents a byte, returns
that byte's value.
|
static double |
Double.parseDouble(String s)
Returns a new double initialized to the value represented by the
specified
String , as performed by the valueOf
method of class Double . |
static float |
Float.parseFloat(String s)
Returns a new float initialized to the value represented by the
specified
String . |
static int |
Integer.parseInt(String s)
Parses the string argument as a signed decimal integer.
|
static int |
Integer.parseInt(String s,
int radix)
Parses the string argument as a signed integer in the radix
specified by the second argument.
|
static long |
Long.parseLong(String s)
Parses the string argument as a signed decimal
long . |
static long |
Long.parseLong(String s,
int radix)
Parses the string argument as a signed
long in the
radix specified by the second argument. |
static short |
Short.parseShort(String s)
Assuming the specified String represents a short, returns
that short's value.
|
static short |
Short.parseShort(String s,
int radix)
Assuming the specified String represents a short, returns
that short's value in the radix specified by the second
argument.
|
static Integer |
Integer.valueOf(String s)
Returns a new Integer object initialized to the value of the
specified String.
|
static Float |
Float.valueOf(String s)
Returns the floating point value represented by the specified String.
|
static Double |
Double.valueOf(String s)
Returns a new
Double object initialized to the value
represented by the specified string. |
static Integer |
Integer.valueOf(String s,
int radix)
Returns a new Integer object initialized to the value of the
specified String.
|
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.