Java/Excercise

object ch03 Define

낭구리 2021. 9. 2. 17:56
package ch03;

public class Define {

	public static final int MIN = 1;
	public static final int MAX = 9999999;
	public static final double PI = 3.14;
	public static final String GREETING = "Good Morning";
	public static final int MATH_CODE = 1001; //단어가 이어지면 _를 써서 이어지게해준다
	
	
	public static void main(String[] args) {
		//문제 1. 화면에 다 출력해봅시다.
		System.out.println(Define.MIN);
		System.out.println(Define.MAX);
		System.out.println("원주율은 : " + Define.PI+ "입니다.");
		System.out.println(Define.GREETING);
		System.out.println(Define.MATH_CODE);
	}
}

'Java > Excercise' 카테고리의 다른 글

WrapperEx2  (0) 2021.09.02
WrapperEx1  (0) 2021.09.02
object ch02 StringTest2  (0) 2021.09.02
object ch02 StringTest1  (0) 2021.09.02
swing ch02 FlowLayoutEx(배열)  (0) 2021.09.01