SyntaxFix
Write A Post
Hire A Developer
Questions
We print the value using mainList.get(index) where index starts with '0'. For Example: mainList.get(2) prints the 3rd element in the list.