Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 235
  • Last Modified:

Java ArrayList on AIX vs Windows

Hi , newbie question.
When I populate an arraylist and get the index 1
on aix it prints the first element of the list
and on windows it prints the second element (because here it starts at 0)

why is that?

0
d2marcelo
Asked:
d2marcelo
  • 2
1 Solution
 
CEHJCommented:
Because you're doing something different ;-) Java is essentially the same on any platform. That's kind of the whole point
0
 
d2marceloAuthor Commented:
yes,  found a terrible bug that I setting it to -1 based on the os version.
0
 
CEHJCommented:
:-)

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now