File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes ArrayListMagnet- problem compiling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "ArrayListMagnet- problem compiling" Watch "ArrayListMagnet- problem compiling" New topic

ArrayListMagnet- problem compiling

Eddie Davis

Joined: Jul 31, 2009
Posts: 16
I'm getting this error when I try to compile the code. ';' expected
Public Static Void Main (String [] args) {
1 error
william-daviss-macbook:chapter6 topoftiger$

I know it must be something really simple but I just can't find it. Could someone point out to me what's keeping this from compiling?


The actual code is below:
Max Rahder
Ranch Hand

Joined: Nov 06, 2000
Posts: 177
Java is case-sensitive, so you need to use the exact spelling, including case, of symbols and reserved words. In your case, "Public Static Void Main" should be "public static void main".
Eddie Davis

Joined: Jul 31, 2009
Posts: 16
Ahh, thank you! Staring me right in the face.

Again thanks so much! Now to move to Chapter 7.
I agree. Here's the link:
subject: ArrayListMagnet- problem compiling
It's not a secret anymore!