main(){ String[] strs = {"1","2","3"}; int[] nums = new int[strs.length]; for(int i=0;i <strs.length;i ) { nums[i] = Integer.parseInt(strs[i]); } }