Results 1 to 2 of 2

Thread: symbol error

  1. #1
    therealyacek is offline Member
    Join Date
    Oct 2012
    Posts
    8
    Rep Power
    0

    Question symbol error

    here is some simple code i would like to compile but I keep getting a "symbol: class ListADT" error

    Java Code:
    package data_structures;
    
    import java.util.Iterator;
    import java.util.NoSuchElementException;
    
    public class LinkedListDS<E> implements ListADT<E> {
        
    	private class Node<E> {
    	    E data;
    	    Node<E> next;
    	
    	    public Node(E data) {
    	        this.data = data;
    		    next = null;
    	    }
    	}	
    }
    any idea why... i have compiled my ListADT.java class and that one compiles fine.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,189
    Rep Power
    19

    Default Re: symbol error

    Your syntax implies that ListADT is an interface but your post says it's a class. Which is it?

    Also, when seeking help with an error always post the entire error message (or stack trace), without paraphrasing. The error you're getting is most definitely not
    "symbol: class ListADT"
    db
    Last edited by DarrylBurke; 10-03-2012 at 08:19 AM.
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Help with Symbol Error
    By TANKDS in forum New To Java
    Replies: 4
    Last Post: 02-06-2012, 09:04 PM
  2. Cannot find symbol error?
    By Josep_16 in forum New To Java
    Replies: 2
    Last Post: 06-19-2011, 07:14 PM
  3. I need help with an error! Cannot find symbol error!
    By ambria1975 in forum New To Java
    Replies: 2
    Last Post: 07-07-2010, 01:37 AM
  4. Replies: 9
    Last Post: 10-18-2008, 08:26 PM
  5. Cannot Resolve Symbol error...
    By seral1969 in forum New To Java
    Replies: 4
    Last Post: 02-18-2008, 12:17 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
  •