Question: There are 5 errors in the following class. Identify the line number and rewrite only the corrected line in the space provided String[] strArray
There are 5 errors in the following class. Identify the line number and rewrite only the corrected line in the space provided String[] strArray = [ "abc1", "defl", "mnol", "xyz1", "pqrl", "xyz1", "defl" 1: for (i = 0; i < strArray.length - 1; i++) ( for (i + 1; j < strArray.length; j++) { if ((strArray[1].equals (strArray [j])) and (i not = 1)) { System.out.println("Duplicates: " + strArray [j]);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
