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

Doubt in inner class

 
Debashree Halder
Ranch Hand
Posts: 81
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


If I attempt to run this code it says
"Exception in thread "main" java.lang.Error: Unresolved compilation problem:
The method doStuff() in the type MyOuter.MyInner2 is not applicable for the arguments (String)

at practiceSCJP.InnerExamples.main(InnerExamples.java:30)"

Please explain...
 
M Srilatha
Ranch Hand
Posts: 137
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Hi,

Is that a typo? Change the mi2.doStuff("pop") to mi2.dostuff("pop")
It compiles and runs properly!

Hope this helps!
[ November 17, 2008: Message edited by: M Srilatha ]
 
Debashree Halder
Ranch Hand
Posts: 81
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oops! got it...thanks.
it was indeed a typo
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic