Untitled

 avatar
unknown
plain_text
4 months ago
936 B
1
Indexable
package Day.Six;

import java.util.ArrayList;
import java.util.Scanner;

public class ArrayApp {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
ArrayList<Integer> arr;
arr = new ArrayList<Integer>();
while(true) {
    System.out.println("Array MENU:");
    System.out.println("1) Add to end");
    System.out.println("2) Add to beginning");
    System.out.println("3) Add to middle");
    System.out.println("4) Delete at position");
    System.out.println("5) Serach for element");
    System.out.println("6) Display Array data and size");
    System.out.println("7) Substring");
    System.out.print("choice (0 for exit):");
    int ch = sc.nextInt();
    if (ch == 0) {
    	System.out.println("Exiting...");
    	break;
    }
    else if (ch == 1) {
		System.out.println("");
		
  		
          
    		
    	}
    	
    }
	}
}
Editor is loading...
Leave a Comment