How do i use the method of a object which is inside of a arraylist?
-
hello, guys! i just create a program that will add new student objects to a arraylist(named list). and under each object, there are methods such as getGrade and setGrade. can anyone tell me the code for using the getGrade() method of the first element(student object)? is it list.get(0).getGrade();??
-
Answer:
yup... that will work
snbbqsb at Yahoo! Answers Visit the source
Related Q & A:
- How do I use auto-increment within a trigger?Best solution by dba.stackexchange.com
- How can I use my PC with a wireless printer?Best solution by pcmag.com
- How can i use my laptop as a monitor for my xbox 360?Best solution by Yahoo! Answers
- Should I use surf wax for a 7' 6" fish or just a traction pad?Best solution by Yahoo! Answers
- How do I use my TV as a second monitor?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.