Solved

Java ArrayList  on AIX vs Windows

Posted on 2009-05-20
3
221 Views
Last Modified: 2012-05-07
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
Comment
Question by:d2marcelo
  • 2
3 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 250 total points
ID: 24434830
Because you're doing something different ;-) Java is essentially the same on any platform. That's kind of the whole point
0
 

Author Closing Comment

by:d2marcelo
ID: 31583650
yes,  found a terrible bug that I setting it to -1 based on the os version.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 24435276
:-)

0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Application launch issue with Apache Tomcat 5 64
web services creation SOAP vs REST 5 57
by zero exception 10 52
add projects t working set in maven 2 24
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question