You want to produce a random number between 10 and 100, counting by 10s (10, 20, 30, ...). Complete the following code snippet to save this random number in the existing integer variable named num.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter9: Advanced Array Concepts
Section: Chapter Questions
Problem 4GZ
icon
Related questions
Question

Java

You want to produce a random number between 10 and 100, counting by 10s (10, 20, 30, ...). Complete the following code snippet to save this random number in the existing integer variable named num.

Note: Follow the Java style guide for spacing.

Random rand = new Random();

_________________________________

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT