| Basic Type | Wrapper Class Type | Static Conversion Method |
|---|---|---|
| byte | Byte | byte Byte.parseByte(String s) |
| int | Integer | int Integer.parseInteger(String s) |
| float | Float | float Float.parseFloat(String s) |
| double | Double | double Double.parseDouble(String s) |
String input = "5";
int n;
n = Integer.parseInt("5");
// n has value 5, not the string "5".