Solved

compile error

Posted on 2012-04-04
2
351 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 500 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to access elements of included jsp  from parent jsp's save button 9 24
immutable object concept 5 127
squirrelPlay java challenge 40 158
IE doesn't Invoke servlet in iframe 1 115
This article explains the steps required to use the default Photos screensaver to display branding/corporate images
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

856 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