1.a Add the following array as a global variable: int[] arr = { 28, 230, 9, 310,72} 1.b. Write a method, getRandom() that returns a random element from the above array. 1.c Add a setup method, from ...
In Java, arrays and arraylists both can be used to store data. However, their functions and purposes are quite different. First of all, arrays are immutable in size, meaning that, once created, they ...