String data[] = {"1.1","2.2","3.3","4.4"}; Double converted[] = new Double[5]; int x=0; while(x<5){ converted[x] = Double.parseDouble(data[x]);x++; }