• Post Reply Bookmark Topic Watch Topic
  • New Topic

Static import Problem.  RSS feed

 
Soumya Ranjan Mohanty
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question From Learn Key Master Exam.

Given Two Files


and



This Code doesn't compile. please Someone help me to make this compile.
 
Kerem Yazici
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try making your static variable and your method public.
 
Abimaran Kugathasan
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What about the scope of your static members? Check them!
 
karthik varadarajulu
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try to set the acces specifier of the variable to public ..!!! that should do the trick
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!