Question: 20 points) Considering our lectures on clean code, identify what is wrong with the attached segment of code (NotCleanCode.java). To identify please indicate... What part
20 points) Considering our lectures on clean code, identify what is wrong with the attached segment of code (NotCleanCode.java). To identify please indicate... What part of the code you are discussing. The problem that exists. How you would fix it.
--------------------------------
public ListgetThem() { List list1 = new ArrayList (); for (int[] x : theList) if (x[0] == 4) list1.add(x); return list1; }
--------------------------------
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
