Trouble extending java.io.FileFilter!

Discussion in 'Java' started by Frank, Jan 13, 2005.

  1. Frank

    Frank Guest

    Here's the VERY simple java code I'm trying to write:

    public interface FileFilterExpanded extend java.io.FileFilter{
    } // of interface FileFilterExpanded

    And here's the error message. Any thoughts greatly appreciated!!! Frank
    C:\users\frank\java\garberf\garberf\util>"c:\program
    files\java\jdk1.5.0\bin\javac" -classpath
    ..;C:\_dev\BenefitData\BenefitDataEJB\ejbModule;c:\programfiles\javastuff\lib\xerces\tools\xml-apis.jar;c:\programfiles\javastuff\lib\xerces\tools\xercesImpl.jar;c:\programfiles\javastuff\lib\xalan-j_2_6_0\bin\xalan.jar;C:\programfiles\javastuff\lib\jdom.jar;C:\programfiles\javastuff\lib\j2ee.jar
    FileFilterExpanded.java
    FileFilterExpanded.java:3: '{' expected
    public interface FileFilterExpanded extend java.io.FileFilter{
    ^
    FileFilterExpanded.java:4: '}' expected
    } // of interface FileFilterExpanded
    ^
    2 errors
    Normal Termination
    Output completed (0 sec consumed).
     
    Frank, Jan 13, 2005
    #1
    1. Advertising

  2. Frank

    Guest

    It should be extends
     
    , Jan 13, 2005
    #2
    1. Advertising

  3. Frank wrote:
    > Here's the VERY simple java code I'm trying to write:
    >
    > public interface FileFilterExpanded extend java.io.FileFilter{
    > } // of interface FileFilterExpanded
    >
    > And here's the error message. Any thoughts greatly appreciated!!! Frank
    > C:\users\frank\java\garberf\garberf\util>"c:\program
    > files\java\jdk1.5.0\bin\javac" -classpath
    > .;C:\_dev\BenefitData\BenefitDataEJB\ejbModule;c:\programfiles\javastuff\lib\xerces\tools\xml-apis.jar;c:\programfiles\javastuff\lib\xerces\tools\xercesImpl.jar;c:\programfiles\javastuff\lib\xalan-j_2_6_0\bin\xalan.jar;C:\programfiles\javastuff\lib\jdom.jar;C:\programfiles\javastuff\lib\j2ee.jar
    > FileFilterExpanded.java
    > FileFilterExpanded.java:3: '{' expected
    > public interface FileFilterExpanded extend java.io.FileFilter{
    > ^
    > FileFilterExpanded.java:4: '}' expected
    > } // of interface FileFilterExpanded
    > ^
    > 2 errors
    > Normal Termination
    > Output completed (0 sec consumed).


    The keyword should be 'extends' instead of 'extend'.
     
    Collin VanDyck, Jan 13, 2005
    #3
  4. Frank

    Frank Guest

    wrote:
    > It should be extends
    >

    Thanks! that did the trick!!!
     
    Frank, Jan 13, 2005
    #4
  5. Frank

    Frank Guest

    Collin VanDyck wrote:
    > Frank wrote:
    >
    >> Here's the VERY simple java code I'm trying to write:
    >>
    >> public interface FileFilterExpanded extend java.io.FileFilter{
    >> } // of interface FileFilterExpanded
    >>
    >> And here's the error message. Any thoughts greatly appreciated!!! Frank
    >> C:\users\frank\java\garberf\garberf\util>"c:\program
    >> files\java\jdk1.5.0\bin\javac" -classpath
    >> .;C:\_dev\BenefitData\BenefitDataEJB\ejbModule;c:\programfiles\javastuff\lib\xerces\tools\xml-apis.jar;c:\programfiles\javastuff\lib\xerces\tools\xercesImpl.jar;c:\programfiles\javastuff\lib\xalan-j_2_6_0\bin\xalan.jar;C:\programfiles\javastuff\lib\jdom.jar;C:\programfiles\javastuff\lib\j2ee.jar
    >> FileFilterExpanded.java
    >> FileFilterExpanded.java:3: '{' expected
    >> public interface FileFilterExpanded extend java.io.FileFilter{
    >> ^
    >> FileFilterExpanded.java:4: '}' expected
    >> } // of interface FileFilterExpanded
    >> ^
    >> 2 errors
    >> Normal Termination
    >> Output completed (0 sec consumed).

    >
    >
    > The keyword should be 'extends' instead of 'extend'.

    Thanks! That did it!!
     
    Frank, Jan 13, 2005
    #5
  6. On Thu, 13 Jan 2005 09:33:40 -0500, Frank wrote:

    > Here's the VERY simple java code I'm trying to write:


    I notice the problem is solved thanks to klynn47 and Collin,
    but I am curious. What editor do you use for Java?

    The reason I ask is that most editors will color keywords differently
    to strings, comments and variable names. Something like this..
    <http://home.earthlink.net/~patricia_shanahan/debug/index.html#FixedSizedBitSet>

    Obviously, it helps greatly to highlight when you have mis-typed a
    keyword if you expect them all to be a particular color or font weight.

    --
    Andrew Thompson
    http://www.PhySci.org/codes/ Web & IT Help
    http://www.PhySci.org/ Open-source software suite
    http://www.1point1C.org/ Science & Technology
    http://www.LensEscapes.com/ Images that escape the mundane
     
    Andrew Thompson, Jan 14, 2005
    #6
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sebastian Hoehn

    Re: FileFilter

    Sebastian Hoehn, Jun 29, 2003, in forum: Java
    Replies:
    1
    Views:
    2,335
  2. P.Hill
    Replies:
    6
    Views:
    6,363
    P.Hill
    Nov 18, 2003
  3. Replies:
    0
    Views:
    420
  4. Carl Douglas
    Replies:
    0
    Views:
    357
    Carl Douglas
    Feb 19, 2007
  5. WoodHacker

    Gtk::FileFilter

    WoodHacker, Nov 1, 2006, in forum: Ruby
    Replies:
    2
    Views:
    179
    WoodHacker
    Nov 2, 2006
Loading...

Share This Page