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 List getThem() { 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!