For an ArrayList you need to call the .size() Method to get the number of elements, not length. You can't just treat the ArrayList like a basic array. Please provide some code samples for help with the other error.
int i = myList.size();
EDIT:
I've just seen, that someone actually mentioned that already in another question of yours.
How to modify a java program from arrays to arraylist objects?
Since you try to employ a method of community-coding just some tips for you to grow and the community to save some nerves ;)
Try to keep the JavaDoc open in a browser while you code: http://download.oracle.com/javase/6/docs/api/
If you want to experiment with an ArrayList, look up which methods and properties it has. Usually, it also links to proper tutorials like, e.g. how to use collection classes.
It's probably quicker to browse the JavaDoc rather than posting a question here and it will give you a good general picture of basic Java classes.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…