Complete the method public void makeListAndPrint(int num, int limit) that creates a new ArrayList object, adds num random integers from 1 to limit to it, and prints the resulting list. /* You can print an ArrayList "directly"! System.out.println(list); will print the contents of an ArrayList object called list. You don't have to use Arrays.toString() as with regular arrays! (They have an overridden, implicitly called toString() method; more on what that means in the inheritance unit.)



Answer :

Other Questions