oop : variable, data type, assign

This commit is contained in:
haerong22
2021-03-05 20:08:45 +09:00
parent a6cd2f88d4
commit e106c78dbf
5 changed files with 78 additions and 0 deletions

21
JavaOOP/src/Java02.java Normal file
View File

@@ -0,0 +1,21 @@
import object.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;
}
}