Skip to content

Instantly share code, notes, and snippets.

View HyangKeunChoi's full-sized avatar

Choi Hyang Keun HyangKeunChoi

View GitHub Profile
🌞 Morning 23 commits █▍░░░░░░░░░░░░░░░░░░░ 6.6%
🌆 Daytime 91 commits █████▍░░░░░░░░░░░░░░░ 26.0%
🌃 Evening 195 commits ███████████▋░░░░░░░░░ 55.7%
🌙 Night 41 commits ██▍░░░░░░░░░░░░░░░░░░ 11.7%
@HyangKeunChoi
HyangKeunChoi / gist:ca1b5a1427a698044ba6dac3401a0464
Last active August 25, 2022 02:27
Comparable & Comparator
public class ComparableComparatorTest {
public static void main(String[] args) {
TestClass[] testClass = new TestClass[10];
for (int i = 0; i < 10; i++) {
testClass[i] = new TestClass((int)(Math.random()*100));
}
// 정렬 전