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