Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Nishant Chauhan

Nishant Chauhan

Community Learner
Active in: Tableau Java
Share
6Questions
2Answers
9.5KViews on questions

Explain the Java dice game.

For the Java dice game - Use objects! You're duplicating a ton of code because each player acts in exactly the same way. Use methods! You're duplicating a ton of code because you're doing the same set of things on each input. Extract that all out to a method. Localise your information better. There's no reason for…

Java

Answered Oct 12, 2022 · 2.3K Views Read answer →

More members from the Tableau community

Learners asking and answering questions on the same topics — follow their questions and join in.

Latest Tableau Blogs

Guides, tips and career advice on Tableau from JanBask experts.

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.