Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java best practice for implementing 10 threads to print [100,101,102...999] in screen

 
hu ecko
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Any other best code???
 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Personally I'm not a fan of inner classes but that is not a big issue. I would rename the class and method inc to something more describing because now it might be confusing because they share the same name.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic