Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Trouble extending java.io.FileFilter!

Reply
Thread Tools

Trouble extending java.io.FileFilter!

 
 
Frank
Guest
Posts: n/a
 
      01-13-2005
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:\progr am
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\tool s\xercesImpl.jar;c:\programfiles\javastuff\lib\xal an-j_2_6_0\bin\xalan.jar;C:\programfiles\javastuff\li b\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).
 
Reply With Quote
 
 
 
 
klynn47@comcast.net
Guest
Posts: n/a
 
      01-13-2005
It should be extends

 
Reply With Quote
 
 
 
 
Collin VanDyck
Guest
Posts: n/a
 
      01-13-2005
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:\progr am
> 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\tool s\xercesImpl.jar;c:\programfiles\javastuff\lib\xal an-j_2_6_0\bin\xalan.jar;C:\programfiles\javastuff\li b\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'.
 
Reply With Quote
 
Frank
Guest
Posts: n/a
 
      01-13-2005
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> It should be extends
>

Thanks! that did the trick!!!
 
Reply With Quote
 
Frank
Guest
Posts: n/a
 
      01-13-2005
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:\progr am
>> 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\tool s\xercesImpl.jar;c:\programfiles\javastuff\lib\xal an-j_2_6_0\bin\xalan.jar;C:\programfiles\javastuff\li b\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!!
 
Reply With Quote
 
Andrew Thompson
Guest
Posts: n/a
 
      01-14-2005
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Embedded and extending python 2.5: trouble with __main__ inPyRun_SimpleFileExFlags? Carl Douglas Python 0 03-05-2007 01:51 AM
Embedded and extending python 2.5: trouble with __main__ inPyRun_SimpleFileExFlags? Carl Douglas Python 0 02-19-2007 10:51 AM
i have no trouble to send , ihave trouble reciving mail --any ideas John Penney Computer Support 4 08-29-2006 08:45 PM
extending a wireless Stuart Turrell Wireless Networking 6 11-30-2004 10:18 PM
trouble with caching or caching the trouble Hypo ASP .Net 6 08-01-2003 07:11 AM



Advertisments