Javascript Add All Items In Array Java