How do I fix it in GDB?
Extracted text: Main.java ArrayReversal.java ! 1 2 import java.util.Scanner; 3. 4- public class ArrayReversal { /* Reverse values in the array */ public void reverseValues(int[] arrayVals) { int i; int tempStore; // Temp variable for swapping 6. 7 8 9. 10 for (i = 0; i < (arrayvals.length="" 2);="" ++i)="" {="" swap="" two="" values="" tempstore="" arrayvals[i]="arrayVals[arrayVals.length" -="" 1="" -="" i];="" arrayvals[arrayvals.length="" -="" 1="" -="" i]="" }="" 11="" 12="" 13="" arrayvals[i];="" 14="" 15="" tempstore;="" 16="" 17="" }="" 18="" *="" prompt="" user="" to="" enter="" values="" *="" public="" void="" fillvalues(int[]="" arrayvals)="" {="" scanner="" scnr="new" scanner="" (system.in);="" int="" i;="" 19="" 20="" 21="" 22="" 23="" system.out.println("enter="" for="" (i="0;" i="">< arrayvals.length;="" ++i)="" {="" system.out.print("value:="" ");="" +="" arrayvals.length="" +="" values...");="" %3d="" %3d="" 24="" 25="" -="" 26="" input="" stderr="" compilation="" failed="" due="" to="" following="" error(s).="" main.java:4:="" error:="" class="" arrayreversal="" is="" public,="" should="" be="" declared="" in="" a="" file="" named="" arrayreversal.java="" public="" class="" arrayreversal="" {="" arrayreversal.java:4:="" error:="" duplicate="" class:="" arrayreversal="" public="" class="" arrayreversal="" {="" 2="">
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here