Tiny Rock On

Hardcode

Hardcode/error

[oracle] ora-28001: the password has expired

Last login: Thu Oct 20 22:19:13 on ttys000 seungri@choeseungliui-MacBookPro ~ % docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 6e7386bab035 deepdiver/docker-oracle-xe-11g "/bin/sh -c 'sed -i …" 6 weeks ago Up 13 hours 0.0.0.0:1521->1521/tcp, 22/tcp, 0.0.0.0:8080->8080/tcp oracle11g seungri@choeseungliui-MacBookPro ~ % docker start oracle11g oracle11g seungri@choeseungliui-MacBoo..

Hardcode/javascript

변수(var)와 함수(function)의 차이

var 변수 데이터 (1개) 보관 - 한 개의 데이터만 저장 - var라는 키워드를 사용하여 선언 - 문자, 숫자, 논리형 데이터 보관 - 객체를 참조(new) function 함수 자바스크립트 코드 보관 - 자바스크립트 코드 저장 - function이라는 키워드를 사용하여 선언 - 출력문, 제어문 등의 코드를 저장하고 데이터를 반환

Hardcode

밀리초 시 분 초 계산하기

1초 = 1000(msc) 1분(60초) = 1000 * 60 1시간(60분) = 1000 * 60 * 60 1일(60분*24) = 1000 * 60 * 60 * 24

Hardcode/java

Map - HashMap

Map / HashMap / 주요 명령 / .put / .containsKey / .containsValue / .remove(k) / .keySet() / .entrySet() day 19 Map은 key - value 구조. https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html Map (Java SE 11 & JDK 11 ) If the specified key is not already associated with a value (or is mapped to null), attempts to compute its value using the given mapping function and enters it in..

Hardcode/java

집합 연산 - Set, List

day 19 package api.util.collection2; import java.util.ArrayList; import java.util.List; public class Test05 { public static void main(String[] args) { //집합 연산 List a = new ArrayList(); a.add(1); a.add(2); a.add(3); List b = new ArrayList(); b.add(3); b.add(4); b.add(5); List c = new ArrayList(); c.addAll(b); c.addAll(a); System.out.println(c); } } List를 사용해서 합집합을 구한다면 사용된 명령 : .addAll c : [3 4 5..

Hardcode/java

Collection - ArrayList, LinkedList, TreeSet, HashSet

Collection / 알고리즘 자료구조 / ArrayList / LinkedList / TreeSet / HashSet day 19 선형 구조 List 비선형 구조 Set ArrayList TreeSet (정렬) LinkedList HashSet (빠름) 순서ㅇ, 느림 순서ㄴ, 빠름 package api.util.collection2; import java.util.HashSet; import java.util.Set; import java.util.TreeSet; public class Test04 { public static void main(String[] args) { //HashSet vs TreeSet Set a = new HashSet(); Set b = new TreeSet(); a.ad..

Hardcode/java

Collection - Set, List와의 차이

day 17 package api.util.collection2; import java.util.Set; import java.util.TreeSet; public class Test01 { public static void main(String[] args) { //Set //- 중복이 없는 저장소 //- 순서가 정해진 저장소 TreeSet a = new TreeSet(); TreeSet b = new TreeSet(); Set c = new TreeSet(); //추가 - .add() c.add("마리오"); c.add("루이지"); c.add("쿠파"); c.add("피오나"); c.add("루이지"); //검색 - .contains() System.out.println(c.contains("피카츄..

Hardcode/java

Collection - List

Collection - List / 주요 명령 / Wrapper Class day17 https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/List.html List (Java SE 11 & JDK 11 ) An ordered collection (also known as a sequence). The user of this interface has precise control over where in the list each element is inserted. The user can access elements by their integer index (position in the list), and search for elem..

Hardcode/java

Scanner 클래스 next/hasNext/nextLine/hasNextLine 사용시 주의 사항

day 17 Scanner 클래스 스캐너의 원래 용도에 대해서 배웠음 https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Scanner.html#constructor.summary Scanner (Java SE 11 & JDK 11 ) Scans the next token of the input as a float. This method will throw InputMismatchException if the next token cannot be translated into a valid float value as described below. If the translation is successful, the scanner ad..

paldang
'Hardcode' 카테고리의 글 목록 (2 Page)