Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Java Tutorial 8 - Wrapper-Klassen und Autoboxing

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
2,920
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 6, 2010

Java Tutorial 8 - Wrapper-Klassen und Autoboxing

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (matt38559)

  • Ok i didn't understand anything you said, but all you germans(if you are german) know english so i have a question.

    Pretend you have an ArrayList object named numbers. I want to use the add() method and i do this:

    numbers.add(new Integer(5));

    What does it mean when i type in "new Integer(5)"? Am I passing the 5 along without creating a new Integer object?

  • @LasagnaIsGood "new" = create a new object. "Interger(5)" = Call the Interger-Class - his Constructor on pass the value 5.

    numbers.add(new Integer(5)) = Create a new Integer Object with the Value 5 and put it into our list. This specific listItem is a Integer Object now.

see all

All Comments (3)

Sign In or Sign Up now to post a comment!
  • sehr informativ, danke dir :)

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more