Skip to content

Commit

Permalink
6.2. 데이터 타입
Browse files Browse the repository at this point in the history
  • Loading branch information
egoing committed Sep 17, 2019
1 parent 58363cb commit b127c30
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Data_and_operation/Datatype.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
public class Datatype{
public static void main(String[] args) {
System.out.println(6); // Number
System.out.println("six"); // String

System.out.println("6"); // String 6

System.out.println(6+6); // 12
System.out.println("6"+"6"); // 66

System.out.println(6*6); // 36
// System.out.println("6"*"6");

System.out.println("1111".length()); // 4
// System.out.println(1111.length());

System.out.println("Hello World"); //String 문자열
System.out.println('H'); //Char 문자
System.out.println("H");

}
}

0 comments on commit b127c30

Please sign in to comment.