Unformatted text preview: int corresponding to the value stored in the parameter string. Since it is static, it can be called with the class name (without instantiating an obejct) as: int num = Integer.parseInt(“11”); Then “num” will contain the integer 11. Also see other wrapper classes such as Double. (e.g., double num2 = Double.parseDouble(“3.21”); )...
View Full Document
This note was uploaded on 06/11/2009 for the course CS 205214 taught by Professor Balasooriya/kouvetakis during the Spring '09 term at ASU.
- Spring '09