• 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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic