Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2009
    Location
    DKI Jakarta, Indonesia
    Posts
    10
    Rep Power
    0

    Default Filter cannot be resolved to a type??

    I had error showed with this code
    @ line I declared class AgeFilter, there's error:
    "Filter cannot be resolved to a type"

    private static class AgeFilter implements Filter {
    /**
    * Accept child rows when age > 50.
    *
    * @param child The child ResultSet.
    * @return true, if age > 50.
    *
    */
    public boolean evaluate( ResultSet child )
    {
    try {
    ResultSet cursor = (ResultSet) child;
    int age = cursor.getInt( "Employee.age" );
    return age > 50;
    } catch( ULjException exc ) {
    Demo.displayException( exc );
    return false;
    }
    }
    }

    I m newbie in JAVA, so I didn't understand why that error keep showed??

    What should I do to get out from this error?? Any suggestion for me??

    Any help would be appreciated

    -Harrie-

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    10

    Default

    You need to import the Filter interface that you are trying to implement.

Similar Threads

  1. The import java.security cannot be resolved??
    By Harrie_KalaChakra in forum Eclipse
    Replies: 9
    Last Post: 01-20-2010, 06:15 AM
  2. Javax.net is not resolved in Eclipse
    By ansh12 in forum Eclipse
    Replies: 0
    Last Post: 07-04-2009, 12:27 PM
  3. web content filter or internet filter
    By sundarjothi in forum Advanced Java
    Replies: 3
    Last Post: 05-15-2008, 11:36 AM
  4. Mark thread RESOLVED.
    By Eranga in forum Suggestions & Feedback
    Replies: 45
    Last Post: 04-02-2008, 10:34 AM
  5. Replies: 1
    Last Post: 12-18-2007, 11:41 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
  •