Results 1 to 3 of 3
  1. #1
    rbradleyjr is offline Member
    Join Date
    Mar 2012
    Posts
    5
    Rep Power
    0

    Default Unable to find symbol: CallBack

    I am new to Java. I am getting the error message "unable to find symbol: CallBack" when I try to run this code. I am being introduced to "interfaces".



    class Client implements Callback {
    // implements Callback's interface
    public void Callback( int p ) {
    System.out.println( "Callback called with " + p );
    }

    void nonIfaceMeth() {
    System.out.println( "Classes that implement interfaces " +
    "may also define other members, too" );
    }
    }

    class TestIface {
    public static void main( String args[] ) {
    Callback c = new Client();
    c.callback( 42 );
    }
    }

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,641
    Rep Power
    7

    Default Re: Unable to find symbol: CallBack

    What is callback? Did you import it?

  3. #3
    rbradleyjr is offline Member
    Join Date
    Mar 2012
    Posts
    5
    Rep Power
    0

    Default Re: Unable to find symbol: CallBack

    Sorry. New to Java. I forgot to create the callback.java interface file.
    I'm also working in Netbeans.
    Just one of hundreds of mistakes to come. ;-)

Similar Threads

  1. Cannot find symbol
    By Eleeist in forum New To Java
    Replies: 5
    Last Post: 01-22-2012, 09:36 PM
  2. Unable to find plug-in
    By tommo in forum Eclipse
    Replies: 0
    Last Post: 10-18-2011, 04:47 AM
  3. unable to find RCP Hello Example
    By thano in forum Eclipse
    Replies: 0
    Last Post: 06-02-2011, 02:13 PM
  4. Replies: 9
    Last Post: 10-18-2008, 09:26 PM
  5. Replies: 3
    Last Post: 05-01-2008, 09:30 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
  •