Java Array, ArrayList Conversion

Convert List to Array List<String> list = new ArrayList<>();list.add(“man”);list.add(“women”);String[] arr = list.toArray(new String[list.size()]);System.out.println(Arrays.toString(arr)); Convert Array to List String[] arr = … Continue reading Java Array, ArrayList Conversion