Results 1 to 4 of 4
  1. #1
    BHCluster is offline Member
    Join Date
    Mar 2008
    Posts
    32
    Rep Power
    0

    Default Searching Arrays

    This is what I have so far
    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();
    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.

  2. #2
    Join Date
    Jul 2008
    Posts
    33
    Rep Power
    0

    Default

    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/

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default

    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.

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. Searching XML file using DOM
    By simon in forum XML
    Replies: 5
    Last Post: 03-30-2009, 01:27 AM
  2. Problem with searching while using GUI
    By BHCluster in forum AWT / Swing
    Replies: 1
    Last Post: 04-24-2008, 06:56 PM
  3. Searching an arraylist
    By adelgado0723 in forum New To Java
    Replies: 1
    Last Post: 04-15-2008, 01:09 PM
  4. searching within a JList
    By newtojava7 in forum New To Java
    Replies: 1
    Last Post: 03-10-2008, 12:12 AM
  5. searching
    By nalinda in forum New To Java
    Replies: 3
    Last Post: 12-06-2007, 02:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •