Question: write a code in java that accepts one int parameter and returns int (random) with exactly that many digits. Using randomInt(2) we could return 22

write a code in java that accepts one int parameter and returns int (random) with exactly that many digits. Using randomInt(2) we could return 22 or 54 or 42 etc... but not accepting 2 and 222

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!