목록분류 전체보기 (89)
develope_kkyu
public static void main(String[] args) { Scanner sc = new Scanner(System.in);// 키보드로부터 입력받겠다. int age; System.out.print("당신의 나이를 입력하세요."); age = sc.nextInt();//정수만 받음 System.out.printf("당신의 나이는 %d세입니다. \n", age); sc.nextLine();// 강제로 찌꺼기 소화. System.out.print("당신의 이름은? ==>"); String name; name = sc.nextLine();//문자형으로 받음 System.out.printf("당신의 이름은 %s입니다.\n", name); System.out.print("오늘의 온도는? ==>")..
CafeMain.java import java.util.ArrayList; import java.util.Scanner; public class CafeMain { public static void main(String[] args) { Menu menu = new Menu(); Sales sales = new Sales(); Scanner s = new Scanner(System.in); while(true) { System.out.println("작업선택 [m:메뉴작업,o:주문관리,s:매출조회,'':종료]"); String op = s.nextLine(); if(op.equals("m")) { menu.control(); } else if(op.equals("o")){ Order order = new..
MyPoint.java public class MyPoint { public int x; public int y; MyPoint(int x, int y){ this.x = x; this.y = y; } public double getDistance(int i, int j) { double dis; dis = Math.sqrt((this.x-i)*(this.x-i) + (this.y-j)*(this.y-j)); return dis; } } MyPointExam.java public class MyPointExam { public static void main(String[] args) { //System.out.println(Math.sqrt(4));// 2.0*2.0 == 4 //System.out.pr..
public static void main(String[] args) { // 최대, 최소, 합계를 구하는 프로그램(함수를 이용) int max, min, sum; int [] arr1 = {1,5,3,8,2}; max = searchMax(arr1); min = searchMin(arr1); sum = doSum(arr1); System.out.printf("MAX = %d\n", max); System.out.printf("MIN = %d\n", min); System.out.printf("SUM = %d\n", sum); int [] arr2 = {10,20,5,30,1,-99,100}; max = searchMax(arr2); min = searchMin(arr2); sum = doSum(arr2..
// 홀수 단만 출력할 수 있도록 프로그램 변경. int a,b; for (a = 1; a
// a, b라는 것은 for 문안의 변수로 활용할 것이고. 이중 Loop (2중 for문)을 활용하여 출력문 .. /* 1 X 1 = 1 1 X 2 = 2 ... 1 X 9 = 9 ----------- 2 X 1 = 2 2 X 2 = 4 ... 2 X 9 = 18 ----------- 3단, 4단, ... 9단. */ int a,b; for (a = 1; a
// 홀수만 더하는 프로그램. // X % 2 ==1; 2로 나누었을 때 나머지가 1 수 ==> 홀수 int index = 0; int total = 0; while (index
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/utIgT/btrUcggyNh7/pjg8bjJKwExoyvkdHDUQA0/img.png)
1. 필수 파일 설치 nodejs.org 다운로드 설치 시 주의 사항 git bash에서 확인 node -v hexo 설치 npm install -g hexo-cli 2. 블로그 생성 적당한 폴더 생성(차례대로 실행) $ mkdir myblog $ cd myblog 블로그 파일명 생성(차례대로 실행) $ hexo init myblog $ cd myblog .github.io 생성 npm 설치 $ npm install $ npm install hexo-server --save $ npm install hexo-deployer-git --save _config.yml 파일 설정 사이트 정보 수정 블로그 URL 정보 설정 깃허브 연동 2. 깃허브에 배포 차례대로 실행 후 http://localhost:4000..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/bkU0oi/btrT9XbmfLw/KHh6PO0Wjba6CShgqgfRLK/img.png)
다운로드 Git : https://git-scm.com/downloads visual studio code 설치 후 Repositories에서 프로젝트 생성 코드 링크 복사 후 바탕 화면 마우스 우 클릭 Git Bash Here 클릭 git clone Shift+”insert” 입력 바탕 화면에 생성된 프로젝트 우 클릭 후 Git Bash Here 클릭 code . 입력 .gitignore에 gitignore.io에서 가져온 내용 뒷 부분에 복사 New Terminal 클릭 git bash 추가 TERMINAL에 $ git commit -m "updated” 입력 에러 확인 후 git config --global user.email "xmcmrb@naver.com" 입력 git config --globa..