Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

no value in output for below code  RSS feed

 
        
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please explain why there is no value in output for below code

 
Bartender
Posts: 10575
66
Eclipse IDE Hibernate Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

A Ka wrote:Please explain why there is no value in output for below code


Because all it does is declare a local class and then NOT use it.

A Ka, I don't want to seem unfriendly, but this seems to be the sort of thing you could have worked out for yourself. Please read the HowToAskQuestionsOnJavaRanch page.

Winston
 
The harder I work, the luckier I get. -Sam Goldwyn So tiny. - this ad:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!