On Aug 26, 3:48 am, Gian-Gabriel Cappuccio <[email protected]> wrote:
> Hello, I am doing the Lab-1004, and see the following:
> int ageint = Integer.parseInt(age);
> *Why do I have to put *
> * int ageint = Integer.parseInt(age);*
> *and not *
> * int ageint = parseInt(age);*
> *
Because partseInt is a method of class Integer. I recommend that each
time you encounter a new method or class, you read the API:
http://java.sun.com/javase/6/docs/api/java/lang/Integer.html
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---