Skip to content

Instantly share code, notes, and snippets.

View ekal901's full-sized avatar

ekal901

View GitHub Profile
package decorator;
/**
* 데코레이터 역할 (피자의 값이나 이름의 반환값에 변화를 주기 위해 추가된 데코레이터)
*/
public class CheeseTopping extends Topping{
Pizza pizza;
public CheeseTopping(Pizza pizza) {
this.pizza = pizza;
@ekal901
ekal901 / 크레인인형뽑기.java
Last active October 25, 2020 10:51
크레인인형뽑기
package Oct;
import java.util.ArrayList;
import java.util.List;
public class 크레인인형뽑기 {
public static void main(String[] args) {
int[][] board = new int[5][];
board[0] = new int[]{0,0,0,0,0};
board[1] = new int[]{0,0,1,0,3};
@ekal901
ekal901 / Contact.java
Last active June 13, 2020 11:22
LinkedList 직접 구현
package com.test;
public class Contact {
String name;
String tel; // 010-1111-2222
String gender;
String birthDate; // 1991/09/01
public Contact() {