List<String> list=new ArrayList<String>(Arrays.asList("baby", "ball", "soap", "baby", "shampoo", "chalk", "soap", "makeup", "baby", "lotion"));
This is one method that you can assign the ArrayList in a single line.I did not faced any issue as of now using this method