일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- https://minkwon4.tistory.com/161
- 국회의원 & 높으신 분들 어록
- https://tecoble.techcourse.co.kr/post/2021-08-07-logback-tutorial/
- Today
- Total
OPEN between Secret
import java.awt.*; import java.awt.event.*; class Yuen extends Frame { int cnt1 = 0; int cnt2 = 0; boolean bl = true; TextArea ta; public Yuen () { setLayout(new FlowLayout() ); Panel p1 = new Panel(); Label la1 = new Label("스페이스바 입력 개수 출력하기 "); p1.add(la1); add(p1); Panel p2 = new Panel(); ta = new TextArea( "",5, 20,TextArea.SCROLLBARS_NONE); p2.add( ta ); add( p2 ); ta.addKeyListener( new Key..
import java.util.Scanner; class Goods { private String name; private int price; private int numberOfStock; private int sold; Goods(String name, int price, int numberOfStock, int sold) { this.name = name ; this.price = price; this.numberOfStock = numberOfStock; this.sold = sold; } String getName() { return name; } int getPrice () { return price; } int getNumberOfStock(){ return numberOfStock; } i..
public class MyExp { int base; int exp; int getValue() { int res=1; for(int i = 0 ; i < exp ; i++) res = res * base; return res; } public static void main(String[] args){ MyExp num = new MyExp(); num.base = 2; num.exp = 3; MyExp num2 = new MyExp(); num2.base = 3; num2.exp = 4; System.out.println("2의 3승 = " + num.getValue()); System.out.println("3의 4승 = " + num2.getValue()); } } -----------------..