Search:

Type: Posts; User: helloworld922

Search: Search took 0.15 seconds.

  1. Replies
    14
    Views
    2,754

    Re: How can I Autoboxing?

    Java's an all OOP language, so it's fairly difficult to write Java procedurally :P (not to say it isn't possible, but it's generally not something you would want to do)

    In all reality, you only...
  2. Replies
    14
    Views
    2,754

    Re: How can I Autoboxing?

    I just gave a perfectly clear example of why Auto-boxing is useful :P

    From a code maintainability standpoint, the first piece of code I have is much easier to read. In industry, code...
  3. Replies
    14
    Views
    2,754

    Re: How can I Autoboxing?

    Sometimes boxing is necessary (and quite helpful). For example, you can't use primitives as generic parameters.

    ArrayList<Integer> myList = new ArrayList<Integer>(); // must use the Integer...
Results 1 to 3 of 3