![]() |
| ||
| Array String Hi everybody, I'm really new to java and I'm not sure how to do this, //Create an ArrayList of String type to hold first names of the students I created mine like this.... ArrayList<String> first = new ArrayList<String>(); |
| ||
| Re: Array String Add some functionality, Compile it and run it and see if it behaves as you want. Why do want our stamp of approval on it, its not like the world would come to an end if you get a compile error or a wrong output while trying out different combinations for a solution, you might end up discovering a lot more of the Java language that way. BTW yes that is correct. |
| ||
| Re: Array String Thanks man, yea that is true but I'm making sure because it is my assignment. |
| ||
| Re: Array String Quote:
Also try to add some elements in the ArrayList and then use a for loop to print them. Do you know how to find the API for the ArrayList? |
| ||
| Re: Array String There's no better way to explore and understand the Java language then to go through the javadocs, it helps you tremendously (Thats my opinion ;-)) |
| ||
| Re: Array String Quote:
|
| ||
| Re: Array String I would, but I'm still not done with the program, I will let you guys know as soon as I'm done with it. I appreciate all the help |
| All times are GMT -4. The time now is 5:24 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC