Primitive Data Types Data Type Size Description byte 1 byte (8-bit) -128 to 127 short 2 bytes -32,768 to 32,767 int 4 bytes -2,147,483.648 to 2,147,483,647 long 8 bytes -9,223.372,036.854,775.808 to 9,223.372,036,854,775,808 float 4 bytes 6 to 7 decimal digits double 8 bytes 15 decimal digits boolean 1 byte true or false char 2 bytes a single character or letter Non-primitive Data Types Non-prim..
Scanner ClassMethods Method Type nextDouble() double nextFloat() float nextInt() int nextLine() String next() next complete token*token: 자바를 구성하는 최소 단위(smallest elements)를 말한다. e.g) 변수, 키워드, 연산자 etc. 구분자(delimiter)에 의해 구분되어질 수 있음 What's the difference between nextLine() and next() ?nextLine() reads the string including space but next() only reads till space. HackerRank123456789101112131415161718..
println e.g) System.out.println("Hello World" + 변수명)'+' 을 사용하면 변수명과 문자열(" " 사용) 을 동시에 사용할 수 있다. 자동줄바꿈기능 printfe.g) System.out.printf("Hello World %d",변수명)format specifier 를 사용해서 다른 형식의 출력을 허용한다.자동 줄바꿈이 되지 않음 Printf format specifier Format Specifier Description %d integer 정수 출력 %f Decimal format 소수점 출력 %c Character 문자 출력 %s String 문자열 출력 %n line separator 줄바꿈 HackerRank Java Output Formatting Que..
- Total
- Today
- Yesterday
- Collection Framework
- code refactoring
- HackerRank Algorithm
- spring boot application
- rest parameter
- hackerrank
- 프로그래머스
- string class in java
- 알고리즘
- 프로그래머스 알고리즘문제
- Object type casting
- math.abs
- hackerrank javascript
- easy algorithm
- HashMap
- hackerrank solution
- javascript
- math.max
- ... in Javascript
- hackerrank javascript solution
- java
- 프로그래머스 알고리즘
- C++
- easy javascript algorithm
- equals()
- compareTo()
- substring()
- algorithm
- repeat()
- Javascript Algorithm
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |