MAC address stands for Media Access Control Address What's the difference between IP address and MAC address? MAC addresses are assigned at the time that hardware is manufactured and it is changeable, but It's generally used without any change. For this reason, MAC addresses are treated permanent address. Whereas, IP addresses are assigned as part of connecting to a network and It is easily chan..
List list = new ArrayList(); This declaration enables to use methods including List interface. It allows to to modify your code to another, such as LinkedList or any other List so that, this declaration is the most used one. ArrayList list = new ArrayList();Whereas, if you use this second declaration, It stores ArrayList methods only. You have to change your code whenever you modify your ArrayLi..
문제 설명두 정수 a, b가 주어졌을 때 a와 b 사이에 속한 모든 정수의 합을 리턴하는 함수, solution을 완성하세요. 예를 들어 a = 3, b = 5인 경우, 3 + 4 + 5 = 12이므로 12를 리턴합니다.제한 조건a와 b가 같은 경우는 둘 중 아무 수나 리턴하세요.a와 b는 -10,000,000 이상 10,000,000 이하인 정수입니다.a와 b의 대소관계는 정해져있지 않습니다.입출력 예abreturn35123335312 Solution in Java 123456789101112131415161718class Solution { public long solution(int a, int b) { long answer = 0; if(a = b; i--){ answer = i + answer;..
DI Dependency Injection 의존성 주입 - IoC (Inversion of Control) and DI are used to be interchangeable. - A programmer is central to the program, but the control of the entire program is the framework. - Inject bean by assembler not Object itself - Spring Container create Bean and control the life cycle of it. Example Code I public class Person{ private Writer text; public Person() { text = new Anoth..
Upcasting Upcasting is casting from a subclass to superclass. When a superclass variable contains a reference to a subclass object, and that reference is used to call a method, the subclass version of the method is called. Student s = new Student (); Person p = (person)s; ↓ Person p = new Student();Reference variable object Upcasting happens if you want to reuse your code that knows about the su..
- Total
- Today
- Yesterday
- hackerrank
- algorithm
- hackerrank javascript
- Object type casting
- string class in java
- spring boot application
- ... in Javascript
- C++
- Collection Framework
- 프로그래머스
- substring()
- javascript
- rest parameter
- HackerRank Algorithm
- math.max
- HashMap
- easy javascript algorithm
- java
- equals()
- easy algorithm
- hackerrank solution
- hackerrank javascript solution
- math.abs
- 알고리즘
- compareTo()
- 프로그래머스 알고리즘문제
- code refactoring
- 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 | 31 |