This is my Java assignment. Please help me to do it. Thankyou.
Ourjob is to take the given code, remove the arrays and replacethem with the identical ArrayLists.
You will need to call the ArrayList methods as defined in thelesson notes above.
Once you have made the changes, you should get identical outputas the given version of the program.
import java.util.ArrayList;
import java.util.Scanner;
public class ArrayListPractice {
public static void main(String[] args) {
int scores[] = {95, 96, 97,98, 99};
System.out.println(“Integerexam scores:”);
print(scores);
System.out.println();
System.out.println(“Afteradding extra credit:”);
addExtraCredit(scores);
print(scores);
System.out.println();
double rainfall[] = {23.4,16.4,
PayPal Gateway not configured
PayPal Gateway not configured