3.2 Assume that r is (a reference to) an object in the Random class. Show that the value of the following expression is not necessarily in the range 0 . . . 99: Math.abs (r.nextInt()) % 100 Hint: See Programming Exercise 3.1. | |
| View Solution | |
| << Back | Next >> |