Java Wrapper Classes - Integer Double Character - Converting String to double - APPFICIAL
Автор: Appficial
Загружено: 2018-03-21
Просмотров: 4114
Java provides wrapper classes for all the primitive data types, in order to provide some useful methods that involve primitive data. These include: Character, Integer, Double, Boolean, and Long. One common method is the parse method for converting a String to an int or double. For example, this will convert the string literal "3.14" to a double.
double number = Double.parseDouble("3.14");
A primitive wrapper object, and also String objects, are immutable, meaning that the methods cannot change the object’s data
SUBSCRIBE!
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: