import java.util.*; class UseMyArrayLists4 { public static void main(String[] args) throws Exception { Scanner input = new Scanner(System.in); System.out.println("Enter some words (all on one line):"); String line = input.nextLine(); String[] words = line.split(" "); MyArrayList4 a = new MyArrayList4(); for(int i=0; i