💡 리스트에 있는 객체를 Comparable를 활용하여 객체의 특정값으로 정렬하기 package org.kyhslam.inflearnJava.dp; import java.util.ArrayList; import java.util.Collections; class Brick implements Comparable { public int s,h,w; public Brick(int s, int h, int w) { this.s = s; this.h = h; this.w = w; } @Override public int compareTo(Brick o) { //return o.s - this.s; // 내림차순 return this.s - o.s; // 오름차순 } } public class dp_04 { pu..