It's not a secret anymore!
The moose likes Beginning Java and the fly likes Missing method body? Eeek! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Missing method body? Eeek!" Watch "Missing method body? Eeek!" New topic

Missing method body? Eeek!

Brandi Love
Ranch Hand

Joined: Sep 19, 2003
Posts: 133
I am writing a program for an assugnment for my com sci class. It is supposed to test whether an entered string is a palindrome or not. When I try to compile I keep getting this error:
C:\Documents and Settings\Administrator.HD5\Desktop\ missing method body, or declare abstract
public static void main(String[] args)
Can anyone tell me why, or how I might be able to fix it?
Joe Ess

Joined: Oct 29, 2001
Posts: 9126

When one ends a method declaration with a semicolon, they are indicating that they are not planning on implementing that method, hence the request from the compiler that you declare your class to be abstract.

[How To Ask Questions On JavaRanch]
Brandi Love
Ranch Hand

Joined: Sep 19, 2003
Posts: 133
oh lord I can't believe I didn't notice that. Thanks much
subject: Missing method body? Eeek!
jQuery in Action, 3rd edition