Question: You need to generate random integer values between 0 and 8 0 ( inclusive ) . Which statement should you use? nextInt ( ) ;

You need to generate random integer values between 0 and 80(inclusive). Which statement should you use?
nextInt();
nextInt(0-79);
nextInt(80);
nextInt(81);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!