If(((ArrayList)list3. Get(row1)). Get(col).
Equals(((ArrayList)connections. Get(row2)). Get(col))){ should read if(((ArrayList)list3.
Get(row1)). Get(col). Equals(( ((ArrayList)connections).
Get(row2)). Get(col))){ You are casting connections. Get(row2) instead of casting connections first and then doing a get on the arraylist EDIT -- You should definitely refactor the code to use Java 1.5 functionality aka generics.
If that's not an option, you should refactor the code to be more readable -- for example : your method is called "connections" and then your variable is called "connections.
If(((ArrayList)list3. Get(row1)). Get(col).
Equals(((ArrayList)connections. Get(row2)). Get(col))){ should read if(((ArrayList)list3.
Get(row1)). Get(col). Equals(( ((ArrayList)connections).
Get(row2)). Get(col))){ You are casting connections. Get(row2) instead of casting connections first and then doing a get on the arraylist.
EDIT -- You should definitely refactor the code to use Java 1.5 functionality aka generics. If that's not an option, you should refactor the code to be more readable -- for example : your method is called "connections" and then your variable is called "connections.
You should also use generics instead of casting. That way you will get an error at compile-time if you do this and your code will be type-safe. Generics just specify the type you are using to the compiler so it can check the types at compile-time.
Example: ArrayList> list = new ArrayList>(); list. Add(new ArrayList()); list. Get(0).
Add(0); list. Get(0). Add(1); list.
Get(0). Add(2); More about generics here. Hope this helps.
Object extended by java.util. AbstractCollection extended by java.util. AbstractList extended by java.util.
Docs.oracle.com/javase/7/docs/api/java/util/ArrayList.html‎CachedEach ArrayList instance has a capacity. The capacity is the size of the array used to store the elements in the list. It is always at least as large as the list size.
Javarevisited.blogspot.com/.../example-of-arraylist-in-java-tutorial.html‎CachedMay 26, 2011 – This java arraylist tutorial is all about how to use arraylist in java5 using generics. Www.homeandlearn.co.uk/java/array_lists.html‎CachedArray Lists in Java. If you don't know how many items are going to be held in your array, you may be better off using something called an ArrayList.
Https://web.cs.dal.ca/~sedgwick/ArrayList.html‎CachedArrayLists in Java. ArrayLists have similar methods to class Vector but are intended for use in programs with one "thread". Www.java-samples.com/showtutorial.php?tutorialid=234‎CachedSimilarThe ArrayList class extends AbstractList and implements the List interface.
ArrayList supports dynamic arrays that can grow as needed. Developer.android.com/reference/java/util/ArrayList.html‎CachedSimilarArrayList is an implementation of List , backed by an array. All optional operations including adding, removing, and replacing elements are supported.
Docs.oracle.com/javase/6/docs/api/java/util/ArrayList.html‎Cachedjava.util0 2, 2013 – When you create an arraylist of type Integer in Java what are the ... When you declare an ArrayList it is empty. It is also a dynamic container ...
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.