본문 바로가기 메뉴 바로가기

Studying programming

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Studying programming

검색하기 폼
  • Jimin's Programming (194)
    • Algorithms (54)
    • JavaScript (16)
    • Vue.js (3)
    • Node.js (3)
    • React.js (7)
    • React Native (0)
    • Spring Boot (13)
    • JAVA (58)
    • C++ (17)
    • Programming (19)
    • Computer basics (4)
  • 방명록

Jimin's Programming (194)
Creating Object and document.write in JavaScript

[] for Array {} for Object document.write - It's a DOM method that allows writing HTML expressions and JavaScript code to a document. - DOM에서 html처럼 text를 쓸 수 있는 method. Example code var food = { "fruit" : "orange", //객체의 property는 key 와 value로 이루어져있다 "veggie":"onion", }; //print the object document.write("fruit : " + food.fruit + ""); document.write("veggie : " + food.veggie + ""); //add more i..

JavaScript 2019. 8. 7. 12:39
String and Number

JavaScript에서 String + Number 는 String의 결과값을 내놓는다. 그걸 방지하기 위해서 괄호를 이용한다. Example Code function sumTextColor(left, right){ document.write(left+right); //6 document.write(''+left+right+''); //15 document.write(''+(left+right)+' '); //6 } sumTextColor(1,5); output 6 15 6

JavaScript 2019. 8. 5. 15:15
Insertion Sort

Insertion Sort 삽입정렬 Insert an element in the sorted subarray to its left. 두번째 Index를 시작으로 자신보다 앞 쪽 (왼쪽) 의 값과 계속 비교해가면서 자리를 옮겨나가는 알고리즘이다. How the Insertion array works int arr[] = [3,5,1,4,2] partial sorted subarray partial unsorted array [3] [5,1,4,2] [3,5] [1,4,2] [3,5,1] -> [3,1,5] -> [1,3,5] [4,2] [1,3,5,4] -> [1,3,4,5] [2] [1,3,4,5,2] -> [1,3,4,2,5] -> [1,3,2,4,5] -> [1,2,3,4,5] [] Solution ..

Algorithms 2019. 8. 1. 14:08
Read CSV File and store data to MySQL

Read CSV File and store the data to MySQL in database table. CSV File에서 가지고 온 데이터를 MySQL DB에 저장하기 Use preparedStatement object to insert data to MySQL. You can use Statement object to insert Statement statement = conn.createStatement(); PreparedStatement is more secure so, it's preferred. PreparedStatement st = conn.prepareStatement(query); *SELECT query createStatement() setString(int, String) ..

JAVA 2019. 8. 1. 10:46
Access ArrayList from another class

When ArrayList is needed from another class, use get/set method to return the list 다른 class에 있는 ArrayList를 사용하고 싶을 때는 get/set 메서드를 이용해서 불러오면 된다. Example code I class 1 import java.util.ArrayList; import java.util.Iterator; public class Main { public static void main(String[] args) { AnotherClass anotherClass = new AnotherClass(); anotherClass.addList(); ArrayList list = anotherClass.getList(); I..

JAVA 2019. 8. 1. 07:39
MySQL commands

MySQL 시작 mysql -u root -p MySQL 비밀번호 입력 **** 전체 db보기 mysql> show databases; 특정 db 로 이동 mysql> use 이름; 이름(); mysql> create table [table name] (); CREATE TABLE customers( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(255) NULL, phone VARCHAR(255) NULL, email VARCHAR(255) NULL, account_num VARCHAR(255) NULL, address VARCHAR(255) NULL, PRIMARY KEY (id) ); 전체 테이블 보기 mysql> show tables; 특정 테이블 보기 mysql..

Programming 2019. 7. 31. 11:25
이전 1 ··· 10 11 12 13 14 15 16 ··· 33 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • Javascript Algorithm
  • math.max
  • math.abs
  • easy algorithm
  • easy javascript algorithm
  • Collection Framework
  • code refactoring
  • ... in Javascript
  • hackerrank solution
  • Object type casting
  • C++
  • spring boot application
  • HashMap
  • algorithm
  • hackerrank
  • compareTo()
  • 프로그래머스 알고리즘
  • HackerRank Algorithm
  • string class in java
  • java
  • substring()
  • rest parameter
  • 프로그래머스 알고리즘문제
  • javascript
  • 프로그래머스
  • hackerrank javascript solution
  • hackerrank javascript
  • equals()
  • repeat()
  • 알고리즘
more
«   2025/07   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바