• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ArrayListMagnet- problem compiling

 
Eddie Davis
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm getting this error when I try to compile the code.
ArrayListMagnet.java:3: ';' 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?

Thanks!

The actual code is below:
 
Max Rahder
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ahh, thank you! Staring me right in the face.

Again thanks so much! Now to move to Chapter 7.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic