This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Date today = new Date(); | |
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd"); | |
String result = df.format(today); //오늘 날짜를 yyyy-MM-dd 형태로 반환 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void doWork(Car c) { | |
if (c instanceof FireEngine){ | |
FireEngine fe = (FireEngine)c; | |
fe.water(); | |
... | |
}else if ... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Vector extends AbstractList | |
implements List, Cloneable, java.io.Serializable { | |
protected Object elementData[]; | |
... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface PlayingCard { | |
public static final int SPADE = 4; | |
final int DIAMOND = 3; //public static final int DIAMOND = 3; | |
static int HEART = 2; //public static final int HEART = 2; | |
int CLOVER = 1; //public static final int CLOVER = 1; | |
public abstract String getCardNumber(); | |
String getCardKind(); //public abstract String getCardKind(); | |
} |