final int NUM=5; String[] str = new String[NUM]; Scanner sc = new Scanner(System.in); for (int i=0; i