Results 1 to 4 of 4
Thread: Searching Arrays
- 07-25-2008, 10:28 PM #1
Member
- Join Date
- Mar 2008
- Posts
- 32
- Rep Power
- 0
Searching Arrays
This is what I have so far
And I get an error cannot find symbol in java, so can somebody tell me what am I doing wrong. Thank you for taking interest.Java Code:ArrayList<AddressBook> book = new ArrayList<AddressBook>(); System.out.println(); System.out.println("Sorted: "); ListIterator list = book.listIterator(); while(list.hasNext()) { Collections.sort(book); System.out.println(list.next()); System.out.println();
- 07-26-2008, 01:29 AM #2
Member
- Join Date
- Jul 2008
- Posts
- 33
- Rep Power
- 0
Did you import all your classes?
Last edited by Engineeringserver.com; 07-26-2008 at 01:33 AM.
:DMy community with sourcode and examples :D
Java remote image server/client working proof of concept: uitstekendeaccu.nl/tmp/
- 07-26-2008, 02:43 AM #3
When you get an error, it's very important that you copy the full text of the error message and paste it with your question.
- 07-26-2008, 05:55 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Is that you get error in sort() method? It should be, see the Java doc for more details.
Similar Threads
-
Searching XML file using DOM
By simon in forum XMLReplies: 5Last Post: 03-30-2009, 01:27 AM -
Problem with searching while using GUI
By BHCluster in forum AWT / SwingReplies: 1Last Post: 04-24-2008, 06:56 PM -
Searching an arraylist
By adelgado0723 in forum New To JavaReplies: 1Last Post: 04-15-2008, 01:09 PM -
searching within a JList
By newtojava7 in forum New To JavaReplies: 1Last Post: 03-10-2008, 12:12 AM -
searching
By nalinda in forum New To JavaReplies: 3Last Post: 12-06-2007, 02:56 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks