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
Get step-by-step solutions from verified subject matter experts
