This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Depending on what you need to do, ArrayList has methods named size() and get() which tell you how many items are in the list and return one item given its integer position in the list, respectively, or you can use a for-loop to process all the items, something like
I have done that but getting an error "score1 is not public in PackageName.ScoreEnd; Cannot be accessed outside package"
I have imported the package the ScoreEnd class is in
Looking in the ScoreEnd Class and all the elements are public. Well the class is public I left the elements to be default.
James Dudley wrote:... I left the elements to be default.
See here for some explanation about 'default modifiers' for class attributes. Chances are you simply have no access. It is a good practice to define members/attributes as private and define getter and setter methods for them.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com