목록Dev (8)
serendipity

* 자바 클래스 파일(*.java)에 public 클래스(class)가 존재하면 , 소스 파일의 이름은 반드시 해당 public 클래스의 이름과 같아야 합니다 !! 이러한 public 클래스는 자바 클래스 파일마다 단 한개만 가질 수 있습니다. 기본 구조 자바 프로그램은 한 개 이상의 클래스(class)로 구성되고, 이러한 클래스는 한 개 이상의 필드(field)나 메소드(method)로 구성됩니다. class 클래스이름 { 필드의 선언 ... 메소드의 선언 ... } main() 메소드 자바 프로그램이 실행되면 맨 먼저 main() 메소드를 찾아 그 안의 모든 명령문을 차례대로 실행합니다. * main() 메소드는 반드시 public static void로 선언되어야 합니다. public static ..

JAVA 자바(Java)는 C++과는 달리 처음부터 객체 지향 언어로 개발된 프로그래밍 언어 현재 자바는 전 세계에서 가장 많이 사용하는 프로그래밍 언어 중 하나다. 자바의 특징 장점) 1. 운영체제와는 독립적으로 실행할 수 있다 2. 불필요한 기능을 과감히 제거하여 다른 언어에 비해 배우기가 쉽다. 3. 자동 메모리 관리 등을 지원하여 다른 언어에 비해 안정성이 높다 4. 연산자 오버로딩을 금지하고 제네릭을 도입함으로써 코드의 가독성을 높였다. 단점) 1. 실행을 위해 자바 가상 머신을 거쳐야 하므로, 다른 언어에 비해 실행 속도가 느리다. 2. 예외 처리가 잘 되어 있지만, 개발자가 일일이 처리를 지정해 줘야 한다는 불편함이 있다. 3. 다른 언어에 비해 작성해야 하는 코드의 길이가 긴 편이다. 프로..

Git 이란? : 형상관리 도구, 버전관리를 위한 프로그램 (Version Control System) "Git은 버전 관리, 협업을 가능할 수 있게 해준다!" 정도로 기억하기. https://git-scm.com/book/ko/v2 (공식 문서) 소스코드를 주고 받을 필요 없이, 같은 파일을 여러 명이 동시에 작업하는 병렬 개발이 가능 분산 버전관리이기 때문에 인터넷이 연결되지 않은 곳에서도 개발을 진행할 수 있으며, 중앙 저장소가 날라가버려도 다시 원상복구 가능GIT을 통해 버전 관리를 하면 체계적인 개발이 가능해지고, 프로그램이나 패치를 배포하는 과정도 간단 Git 영역 working directory : 현재 작업하고 있는 공간으로, Git이 관리하고 있지만 아직 추적( track )하고 있지 않..

🐼 Get the latest changes from origin (no merge) $ git fetch Fetch the latest changes from origin and merge $ git pull Fetch the latest changes from origin and rebase $ git pull --rebase Push local changes to the origin $ git push * compulsion $ git push -f

🐱 List all local branches $ git branch List all branches, local and remote $ git branch -av Switch to a branch, my_branch, and update working directory $ git checkout my_branch Create a new branch called new_branch $ git branch new_branch Delete the branch called my_branch $ git branch -d my_branch Merge branch_a into branch_b $ git checkout branch_b $ git merge branch_..

🐯 Create a new local repository $ git init [project name] Download from an existing repository $ git clone my_url 🦊 List new or modified files not yet committed $ git status Show the changes to files not yet staged $ git diff Show the changes to staged files $ git diff --cached Show all staged and unstaged file changes $ git diff HEAD Show the ..

Weather Observation 시리즈 SQL 문제 풀이 2 Weather Observation Station 11 https://www.hackerrank.com/challenges/weather-observation-station-11/problem Weather Observation Station 11 | HackerRank Query a list of CITY names not starting or ending with vowels. www.hackerrank.com SELECT DISTINCT city FROM station WHERE city REGEXP '^[^aeiou]|[^aeiou]$' Weather Observation Station 12 https://www.hackerrank...

Weather Observation 시리즈 SQL 문제 풀이 Weather Observation Station 1 https://www.hackerrank.com/challenges/weather-observation-station-1/problem Weather Observation Station 1 | HackerRank Write a query to print the CITY and STATE for each attribute in the STATION table. www.hackerrank.com SELECT city, state FROM station Weather Observation Station 2 https://www.hackerrank.com/challenges/weather-obser..