22 lines
465 B
Java
22 lines
465 B
Java
import myObject.Book;
|
|
|
|
public class Java02 {
|
|
public static void main(String[] args) {
|
|
// 프로그래밍 3대 요소 - 변수, 자료형, 할당
|
|
// {자료형} {변수} = {할당}
|
|
int a = 1, b = 1, c = a + b;
|
|
System.out.println(c);
|
|
|
|
float f = 34.5f;
|
|
System.out.println(f);
|
|
|
|
char d = 'A';
|
|
System.out.println(d);
|
|
|
|
boolean g = true;
|
|
System.out.println(g);
|
|
|
|
Book book;
|
|
}
|
|
}
|