OOP(Object Oriented Programming) 실제 존재하는 사물과 그에 따르는 행동을 3인칭 관찰자의 시점으로 실체화(=객체화) 시키는 형태의 프로그래밍. 수정과 유지보수에 용이 (대규모 프로젝트에 사용되기 적합) Object 객체는 데이터와 기능으로 이루어져 있다. instance 객체는 어떤 클래스에 실제하는 물건이라는 의미에서 instance라고 한다. 그렇기에 그것을 생성하는 행위를 인스턴스화(instantiation) 라고 한다. 객체를 생성할 때는 Class라는 틀이 있어야한다. 정의한 클래스를 실체화시키는 것이 객체화 시키는 것이다. *Class 특정한 유형의 객체를 구별하여 정의한 것을 가지고 있다. 틀(mold) e.g 붕어빵틀, Apple class, etc 붕어빵 틀만으..
Main method the main method is the first method when we learn Java to print "Hello World". It's the entry point of Java program. The syntax is fixed and can't be changed. Only the name of the String. for instance, you can change args below. public static void main(String[] args) public Java runtime 이 이 메소드를 실행 할 수 있도록 public 으로 설정 static인스턴스화 하지 않아도 static메서드는 호출가능 voidmain method 는 return type이..
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
- Javascript Algorithm
- math.max
- Object type casting
- 알고리즘
- 프로그래머스 알고리즘
- substring()
- rest parameter
- hackerrank javascript
- C++
- repeat()
- hackerrank javascript solution
- algorithm
- hackerrank
- java
- HackerRank Algorithm
- hackerrank solution
- HashMap
- ... in Javascript
- 프로그래머스
- javascript
- easy algorithm
- string class in java
- easy javascript algorithm
- compareTo()
- math.abs
- Collection Framework
- 프로그래머스 알고리즘문제
- code refactoring
- equals()
- spring boot application
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |