Search:

Type: Posts; User: curmudgeon

Search: Search took 0.09 seconds.

  1. Replies
    3
    Views
    1,342

    Re: ArrayList and foreach question

    I stand corrected from my first post. This is mainly occurring here because you're using boxing to create your Integer object from int objects. Java will get Integers from -126 to 127 from an...
  2. Replies
    3
    Views
    1,342

    Re: ArrayList and foreach question

    The key here is that you're using == to compare two reference variables, and if you're familiar with why you shouldn't do this with Strings, you should understand what is happening here. The JVM uses...
Results 1 to 2 of 2