일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
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()); } } -----------------..
public class Goods { String name; int price; int numberOfStock; int sold; public static void main(String[] args){ Goods camera = new Goods(); camera.name = "Nikon"; camera.price = 400000; camera.numberOfStock =30; camera.sold = 50; System.out.println(camera.name); System.out.println(camera.price); System.out.println(camera.numberOfStock); System.out.println(camera.sold); } } --------------------..
import java.util.Random; import java.util.Scanner; public class CardGame { public static void main (String [] args) { Random rd = new Random(); Scanner sc = new Scanner(System.in); while(true) { int low = 0; int high = 99; int i = 1 ,num = 0; int card = rd.nextInt(100); System.out.println("수를 결정하였습니다. 맞추어보세요"); if(num >high || num < low){ System.out.println("범위를 벗어났습니다."); } else { while(true) {..