This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why this code giving error

 
Johhn Davis
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



Eclipse displays error -----> at thread.main(thread.java:11)
 
shiva pandey
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are putting method inside method . Put your run method outside the main.
 
Johhn Davis
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It reveals we can't defined a method inside another method. Is it ?
thanks for reply.
 
shiva pandey
Greenhorn
Posts: 10
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes , we can not define method inside the method.
 
simon lin
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you meant to override the run method of the thread you are defining

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic