Question: Where would you post the comments for this java code import java.util.InputMismatchException; import java.util.Scanner; public class ArrayValue { static Scanner in = new Scanner(System.in); public
Where would you post the comments for this java code
import java.util.InputMismatchException; import java.util.Scanner;
public class ArrayValue { static Scanner in = new Scanner(System.in);
public static int getInt() { System.out.print("Enter an index position: "); try { return Integer.parseInt(in.nextLine()); } catch(Exception e) { throw new InputMismatchException(); } } public static void fillArray(int arr[]) { for(int i=0; i
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
