Creating Spring Boot application with IntelliJ 1. File - New - Project 2. Choose Spring Initializr 3. Choose Type as Gradle Project Maven/Gradle - it is a build automation system, dependency management tool. no need to download dependencies and add it to the classpath.- It creates a starter project. you don't need to create all the individual files yourself. semantic versioning- 0(major version)..
Collection - InterfaceCollection is a base interface of the Java Collection Framework for List, Set and Queue. Collections - classCollections is a class in java.util package and it is utility class for Collection.Collections class has methods for Sorting, Searching etc ExampleCollections.addAll(A,B); Collections.addAll method takes all of the elements of 'B' and fetch the elements to the collect..
1. Arrays.asList() method makes the original array available as a list. Example codepublic class Main{ public static void main(String[] args) { String[] fruit_array = new String[]{"apple","banana","mango"}; List fruit_list = Arrays.asList(fruit_array); //returned List is fixed size fruit_list.add("melon"); //Error fruit_list.remove(0); //Error fruit_list.set(1,"kiwi"); System.out.println(fruit_l..
FizzBuzz Write a program that prints the numbers from 1 to 100 and for multiples of '3' print "Fizz" instead of the number and for the multiples of '5' print "Buzz". Solution in Java (Converting int to String) 1 2 3 4 5 6 7 8 9 10 11 public class Main{ public static void main(String[] args) { for (int i = 1; i
Lambda Expression It must be the *Functional Interface to use Lambda expression.*It's an interface with only one abstract methodLambda Expression enables method argument to treat functionality. It let you create an instance more compactly.Inside Lambda expression, it is not allowed to change variables. 여러줄의 코드를 메서드에 넣을 때 사용하는 개념. functional interface (한개의 메서드만 가지는 클래스) 일때만 람다식을 사용할 수 있다.오버라이딩으로 ..
compareTo() method in Java compareTo() method compares the Number and an argument. The argument and the number object should be the same types. Example code public class Test { public static void main(String args[]) { Integer i = 3; System.out.println(i.compareTo(2)); //returns '1' : Integer is greater than the argument System.out.println(i.compareTo(3)); //returns '0' : Integer is equal to the ..
- Total
- Today
- Yesterday
- hackerrank javascript
- java
- 프로그래머스
- code refactoring
- substring()
- javascript
- Collection Framework
- HashMap
- spring boot application
- easy algorithm
- math.abs
- C++
- hackerrank solution
- repeat()
- easy javascript algorithm
- math.max
- rest parameter
- Javascript Algorithm
- HackerRank Algorithm
- 알고리즘
- compareTo()
- algorithm
- Object type casting
- ... in Javascript
- hackerrank
- 프로그래머스 알고리즘문제
- string class in java
- equals()
- 프로그래머스 알고리즘
- hackerrank javascript solution
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |