I have small Problem. I have to take input as a string say blue,green,red, etc split this into blue green red respectively separately and then add those into an ArrayList Clr.
I have written
System.out.println(" Enter Color ");
String input = br.readLine();
ArrayList clr = new ArrayList();
String c  = input.split(",");
where pd is the object of the class and ar is the Arraylist and clr is the ArrayList within an ArrayList.
i know its wrong but not able to figure out the logic behind that. could anybody help me pl ?
Thanks in advance! :)