import java.util.Arrays; import java.util.List; public class Test { public static void main(String[] args) { StringBuffer sb=new StringBuffer(); String [] str= {"ipad", "mini", "8"}; List<String> list = Arrays.asList(str); for (int i = 0; i < list.size(); i++) { sb.append(list.get(i)+" ") ; } System.out.println(sb); } }