Search:

Type: Posts; User: Egde

Search: Search took 1.10 seconds.

  1. Replies
    3
    Views
    311

    Re: ArrayList and foreach question

    Thanks curmudgeon,
    I understand that I need to use equals(....) for the code to work. What I probably need to read up more on is why it works for numbers from -126 to 127. Again Thanks.
  2. Replies
    3
    Views
    311

    ArrayList and foreach question

    Hi everyone,

    I need help understanding the code below. The problem I am facing is that when I add two numbers bigger than 127 into the array, the print statement only prints out one value...
Results 1 to 2 of 2