This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 8836

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.

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[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
I agree. Here's the link:
subject: Missing method body? Eeek!
Similar Threads
input from console
palindrome program
Palindrome example
program errors(switch statement)