ArrayHopper
Anónimo
public static String arrayHop(List arrayList) { int arrayListSize = arrayList.size(); if (arrayListSize 0) { level++; for (; i= arrayListSize - 1) { sb.append(nextMax).append(",").append("out"); return sb.toString(); } } if (currentMax == nextMax) { System.out.println("failure"); return ""; } sb.append(nextMax).append(","); currentMax = nextMax; } return sb.toString(); }