[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

compile error

Posted on 2012-04-04
2
Medium Priority
?
358 Views
Last Modified: 2012-04-05
This is the error:

C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\begjsp-ch07x\WEB-
INF\classes\com\wrox\physics>javac *.java
Light.java:3: com.wrox.physics.Light is not abstract and does not override abstract method setWaveLength(long) in com.wrox.physics.Wave
public class Light implements Particle, Wave {
       ^
1 error

Question: How can I correct this error?

Thank you.
Light.java
Particle.java
Wave.java
0
Comment
Question by:Mike Eghtebas
2 Comments
 
LVL 9

Accepted Solution

by:
ioanton earned 2000 total points
ID: 37810320
The methods getWavelenght() and setWavelenght() do not match the ones declared in the Wave interface. The method names are case sensitive. (length vs. Length)
0
 
LVL 34

Author Closing Comment

by:Mike Eghtebas
ID: 37811944
Thank you
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Moore’s Law has proven itself time and time again since it was first introduced. So what’s next? Will Moore’s law continue to remain relevant, or will new technology take over and bring us the next big advancement in computing?
Tech giants such as Amazon and Google have sold Alexa and Echo to such an extent that they have become household names. And soon they are expected to be used by commoners in their homes, ordering takeout, picking out a song, answering trivia questio…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses
Course of the Month17 days, 18 hours left to enroll

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question