-
Spring 웹개발자 기술면접 준비
서론 면접이 코 앞으로 다가왔다. 인터넷에서 예상질문 등 관련자료를 찾던 도중 잘 정리된 블로그 게시물을 발견했고, 이 글을 쭉 훑어본 후 정리된 항목 및 키워드만 가져와서 내가 알고있는대로 다시 답해보았다. 이후 블로그 원글 내용과 비교하며 미흡한 부분을 더 찾아보는 식으로 면접을 준비하려 한다. https://minchoi0912.tistory.com/93 JAVA OOP(객체 지향 프로그래밍)이란? 모든 것을 객체화 시켜서 프로그래밍 하는 기법. 실제 세상과 비슷한 구조로 짜이게 되어 직관적으로 이해하기 쉽고 코드의 재사용성이 올라간다는 장점. java에서는 class와 instance를 통... Read More
-
정적 웹 환경의 가챠 시뮬레이터 프로토타입
서론 동적 웹에 대해 막 배우기 시작했을 때 재미삼아 mvc구조로 뽑기 시뮬레이터를 만든 적이 있다. 모델링 개념도 없던 시절이라 DB 구조부터 모든게 엉성하기 짝이 없었지만 나름 만족할만한 결과가 나왔다. 하지만 웹 호스팅을 할 여력이 없어 배포하지 못했던게 많이 아쉬웠다. github Pages를 이용하면 간편하게 배포가 가능하단 말에 알아봤지만 jsp 파일을 지원하지 않을 뿐더러 애초에 mvc 구조에 db까지 돌린다는게 말이 안되더라. jekyll 블로그를 이용하게 되어 html 파일의 배포가 쉬워진 지금, 이 가챠 시뮬레이터를 배포할 방법이 없을까 이리저리 고민해본 결과 Collection을 DB로 활용하... Read More
-
html to md 테스트2 - 해시태그 파싱기
테스트용 조회 Read More
-
html to md 테스트 - bpm계산기
DJMAX BPM Calculator (*)는 필수 항목입니다. Read More
-
가챠나 돌려보셈
Read More
-
마크다운 연습
마크다운 연습 개행 띄어쓰기를 두 번 입력하면 줄이 바뀐다. 이렇게 목록 요소를 나열할 때 첫번째 두번째 세번째 순서없음 홍길동 중대장 프로실망러 강조 문장 내 강조하고 싶은 단어를 눈에 띄게 볼드(진하게) 이탤릭(기울이기) 취소선 밑줄(왜 갑자기 태그임ㅋㅋ) 인용구 인용할 경우 또는 분위기 전환시에도 사용 위키백과 중대장은 실망했다. 프로 실망러 ... Read More
-
오전 실습과제
문제 실습 : 차량판매 시스템 선택하세요. [0:나가기, 1:차량등록, 2:고객등록, 3. 차량조회, 4: 고객조회, 5:차량판매] [차량등록] 차량번호: 111 차량크기(소형(1)/중형(2)/대형(3)): 2 차량타입(세단(1)/SUV(2)): 1 [고객등록] 고객번호: 122 고객명: 홍길동 [차량조회] 차량번호: 111 차량크기(소형(1)/중형(2)/대형(3)): 2 차량타입(세단(1)/SUV(2)): 1 -------------- [고객조회] 고객번호: 111 고객명: 홍길동 ------------- [차량판매] 고객번호를 등록하세요[0:취소]: 122 차량번호를 등록하... Read More
-
제어문 실습
문제 실습: 선택하세요. [0:나가기, 1:학생입력, 2:학생수출력, 3:학과별 학점평균,4:학생목록출력] [학생입력] 학번: 111 이름: 홍길동 학과: 수학과 학점: 90 [학과수 출력] 총학생수: 5 평균점수: 85 [학과별 학점평균] 학과를 입력하세요: 수학과 평균점수: 85 [학생목록출력] 학번: 111 이름: 홍길동 학과: 수학과 학점: 90 학번: 112 이름: 김길동 학과: 국학과 학점: 85 선택 후 작업 수행하면 다시 ‘선택하세요’가 나타난다 학과: 수학과(10),국어과(20), 영어과(30) 풀이 Student 클래스 package... Read More
-
상속 실습
문제 실습: SpecialMember, Member를설계하시오 Member m = new Member(“김길동”); m.setGrade(“3”); m.hello(); // 안녕하세요 김길동입니다 SpecialMember sm= new SpecialMember(“홍길동”); sm.setGrade(“1”); sm.setSpecialPoint(100); // SpecialMember만 specialPoint관리 Member m2 = sm; m2.hello(); // 안녕하세요 스패설멤버홍길동입니다 풀이 package p20200623; /* * * 실습: SpecialMember, Member를설... Read More
-
급여 계산하기
문제 실습2: 급여계산하기 입력: 기본급, 직책(사원/대리/과장/부장) 출력: 실수령액 =xxx원 계산식은 다음과 같다 실수령액 = 기본급 +직책수당 – 세금 세금 = 기본급의 10% 직책 수당표 과장: 200,000 부장: 500,000 풀이 package p20200623; import java.util.Scanner; class Employee{ //Employee 객체를 추상화하기 위해 새 클래스 생성 double salary; // 월급이라는 변수 추가, 소수점 계산을 위해 doubl... Read More
-
배열원소 이동
문제 실습3: 배열원소 이동 입력:1~10 출력:[2,3,4,5,6,7,1] Int[] irr = {1,2,3,4,5,6,7}; 풀이 package p20200623; import java.util.Scanner; class Service{ // 기능 메소드들이 들어갈 서비스라는 클래스를 따로 만들었음 public int[] swap(int[] arr, int count) { // 이 메소드는 정수(int)로 이루어진 배열([])을 리턴값으로 받겠다. 이름은 swap이며, /... Read More
-
for-each문 연습
for-each문이란? 새로운 형태의 for문은 편의상 for-each문이라 부른다고 합니다. for-each문은 배열의 첫번째 항목에서 마지막 항목까지 반복되는 동작을 명령할 때 사용합니다. 즉, arr라는 배열에 대해 우리가 자주 사용해왔던 for(int i=0; i<arr.length; i++){}와 완벽하게 동일합니다. 워낙 자주 사용되는 형태라 좀 더 직관적으로 쓸 수 있게 추가된 기능이라 하네요. 사용법 문법은 다음과 같습니다. for(“배열에 들어있는 자료형” “해당 자료를 부를 임시 이름(int i랑 비슷한 느낌입니다 마음대로 정해도 돼요) : 배열 이름){} 만약 정수가 ... Read More