import java.util.Scanner; public class DeleteArrayElement { //METHOD TO DELETE VALUE AT AN INDEX static void deleteElement(int arr[]){ Scanner sc= new Scanner(System.in); System.out.print("Enter an index to delete its value: "); int index= sc.nextInt(); if(index -1){ System.out.print(arr[i] + " "); } } } else{ System.out.println("INVALID INDEX PASSED"); } } //METHOD TO PRINT ARRAY static void display(int a[]){ for(int i=0; i