전체 글

개발함
Algorithm/Basic

[JAVA] 대소문자 구별 및 변환 -- toCharArray(), charAt(), toUpper/LowerCase(), isUpper/LowerCase()

대소문자 바꿔서 출력하기 Scanner sc = new Scanner(System.in); String a = sc.next(); char[] ch = a.toCharArray(); for (char c: ch) { if (Character.isUpperCase(c)) { c = Character.toLowerCase(c); } else { c = Character.toUpperCase(c); } System.out.print(c); } .toCharArray() String을 한글자씩 쪼개서 char 타입의 배열에 집어넣는 메서드. Character.isUpperCase(char or int) 전달값() 이 대문자인 경우 true, 아니면 false 반환. int 타입은 아스키 코드를 말함. Chara..

Algorithm/Basic

[JAVA] 문자열 반복 -- repeat(), StringBuilder

프로그래머스 181950 문자열 반복해서 출력하기 Scanner sc = new Scanner(System.in); String str = sc.next(); int n = sc.nextInt(); 콘솔에서 입력받은 str을 n만큼 반복하여 출력하는 문제. 1. repeat() repeat() 메서드는 문자열을 쉽게 반복할 수 있음. for (int i = 0; i < n; i++){ System.out.print(str); } for문을 돌려 str을 n번 반복해 출력하는 대신 System.out.println(str.repeat(n)); 이렇게 한 줄로 처리할 수 있음. 2. StringBuilder 또는 여러 문자열을 이어붙여 하나의 문자열로 만들고 출력하는 방식도 있음. StringBuilder ..

Mac

[Mac] 맥북 껐다 켜면 오라클 실행 안되는 오류 쉽게 고치기 ("conn" is null 오류 해결)

Mac oracle 설치 정말 많은 시행착오를 겪었다. https://shanepark.tistory.com/400 [MacOS] M1 맥북 도커로 ORACLE DB 실행하기 Intro M1 맥북을 처음 구입 한 이후로 약 1년 반동안, 오라클 데이터베이스를 띄우기 위해 참 많은 노 intheham.tistory.com 혹시 colima 와 Docker 로 오라클을 설치하셨는데 맥북을 껐다 켜면 도커 데몬이 실행이 안된다며.. 17002 같은 오류가 뜨시나요? 아니면 프로젝트를 실행했는데 "conn" is null 이라며 DB가 연동이 안되시나요? 아주 쉽게 해결할 수 있습니다. colima 를 다시 시작해주면 되거든요! 지금 당장 terminal 을 켜고 아래 명령어를 입력하세요. colima star..

Java/Basic

개념 정리 -- MVC / JSP / Spring(Boot) / JDBC / MyBatis / JPA / REST api

이력서와 포트폴리오를 정리하면서 그동안 학원에서 배웠던 개념들이 잘 정리되지 않음을 느꼈다. 그래서 이참에 정리해보려고 한다. 1. MVC 패턴 Model - View - Controller 의 약어. 주로 GUI 기반의 애플리케이션 개발에 사용된 디자인 패턴. ※ GUI (Graphical User Interface) 란, 사용자가 컴퓨터, 휴대용 장치 및 기타 기기와 같은 전자 장치와 상호작용할 수 있는 인터페이스이다. 아이콘, 메뉴 및 기타 시각적 표시기 표현을 사용하여 정보 및 관련 사용자 컨트롤을 표시한다. 화면과 데이터 처리를 분리해 코드 간의 종속성을 줄이고 요소 간의 역할을 명확하게 하여 코드 분리가 쉽고 협업을 용이하게 함. 즉, 화면단과 데이터 처리를 나눠서 코드를 설계하는 패턴이 MV..

Git

[M1 mac] github.io 블로그 개설을 위한 설치 작업

1. Hombrew 로 rbenv 설치 (터미널) (Homebrew 없다면 설치하고 오기) // brew 최신으로 업데이트 한 뒤 ruby 설치 brew update brew install rbenv ruby-build rbenv versions // * system 뜨면 성공 rbenv install -l /* (23.07.24 기준) * 3.0.6 * 3.1.4 * 3.2.2 * jruby-9.4.3.0 * mruby-3.2.0 * picoruby-3.0.0 * truffleruby-23.0.0 * truffleruby+graalvm-23.0.0 */ // 가장 최신 버전으로 설치하기 rbenv install 3.2.2 // NOTE: to activate this Ruby version as the..

Front/Vue.js

[Vue] axios, vue-router 설치

[맥 m1] VSCode, Node.js 설치 1. VSCode 설치 (1) 링크 타고 파일 다운받아 설치 Visual Studio Code - Code Editing. Redefined Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications. Visual Studio Code is free intheham.tistory.com 1. axios 와 vue-router 설치 npm install axios --save Vue 에서 ajax 를 쓰려면 axios 를 설치해야 함. npm install vue-router --save 2. 프로젝트 새..

Mac

[맥 m1] VSCode, Node.js 설치

1. VSCode 설치 (1) 링크 타고 파일 다운받아 설치 Visual Studio Code - Code Editing. Redefined Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications. Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows. code.visualstudio.com (2) volar 설치 2. Homebrew로 Node.js 설치 (1) 터미널에서 brew 명령어로 설치 brew install node 더..

Front/Vue.js

[Vue] 환경설정

Vue : front 앱의 기본 뼈대와 api를 제공하는 자바스크립트 프레임워크 : 컴포넌트 베이스 개발 - 컴포넌트는 (화면 ui 구성), data, 메서드로 구성됨. - 컴포넌트 안에 컴포넌트를 끼워넣을 수 있음. (부품처럼 끼워서 씀) 사용방법 1. Jquery 처럼 url 추가해서 사용 2. Node.js 설치 -> VSCode 설치 -> Vue 프로젝트 생성 - 이클립스는 vue 태그가 잘 인식이 안됨. VSCode2 설치해서 씀. - Spring_restapi 프로젝트에 Vue 프로젝트를 합체할 수 있음. (각각 다른 서버 씀) -- 프록시 서버를 등록해서 연결하면 자동으로 합체됨. https://intheham.tistory.com/109 [맥 m1] VSCode, Node.js 설치 1. ..

함s
함함ː