SyntaxFix
Write A Post
Hire A Developer
Questions
Time to familiarize yourself with the ArrayList API and more:
ArrayList
ArrayList at Java 6 API Documentation
For your immediate question:
mainList.get(3);