Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Extends

 
Eddie Long
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Using Eclipse the above code does not run. It gives the following runtime message

Any hints why this is the case?
NB: It works if I create a new class and do the following

[ Jess changed the
tage to [code] tags so the whitespace stays all pretty ]
[ November 06, 2003: Message edited by: Jessica Sant ]
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used the following code:

I have a sneaking suspicion that when you ran the code you tried to execute Modifiers and not newMod -- that's how I get the "no main found" error:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic