This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
나만무 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.stream.Collectors; | |
import java.util.stream.IntStream; | |
public class P03 { | |
public static void main(String[] args) { | |
int totalCount = 127; // 총 글 갯수 | |
int pageIndex = 9; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.awt.*; | |
import java.util.*; | |
import java.util.List; | |
public class P02 { | |
public static void main(String[] args) { | |
NearestPointFinder finder = new NearestPointFinder(); | |
finder.inputMyPoint(); | |
finder.inputNearPoint(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.BufferedWriter; | |
import java.io.File; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.util.HashMap; | |
import java.util.Map; | |
public class P01 { | |
public static void main(String[] args) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.example.assignment_03_18; | |
/* 정재명 | |
* | |
*/ | |
import java.util.List; | |
import java.util.Scanner; | |
import java.util.stream.Collectors; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.example.assignment_03_18; | |
/* 정재명 | |
* | |
* 로또 당첨 프로그램 | |
* | |
* 1. 로또 구매 수량 입력 | |
* 2. 입력한 개수만큼의 로또 개수 생성 | |
* 3. 로또 당첨 번호 생성(숫자값은 중복 배제 및 정렬해서 표시) | |
* 4. 당첨 번호와 구매 로또 비교하여 숫자 일치 여부 판단 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.example.assignment_03_18; | |
/* 정재명 | |
* | |
* 가상 선거 및 당선 시뮬레이션 프로그램 | |
* | |
* 1. 총 투표를 진행할 투표수를 입력 받음 | |
* 2. 선거를 진행할 후보자 수를 입력 받고, 이에 대한 이름을 입력 받음 | |
* 3. 각 입력받은 후보자는 순서대로 기호1, 기호2, 기호3… 형식으로 기호번호 부여함 | |
* 4. 각 투표수의 결과는 선거를 진행할 후보자를 동일한 비율로 랜덤하게 발생 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.example.assignment_03_18; | |
/* 정재명 | |
* | |
* 달력 출력 프로그램 | |
* 1. 입력받은 년도와 월을 통한 달력 생성 | |
* 2. 입력값은 년도, 월을 입력 | |
* 3. 날짜는 LocalDate클래스를 이용(Calendar와 Date클래스도 이용 가능) | |
* 4. 출력은 입력한 달을 기준으로 이전달, 입력달, 현재달 출력(3달 출력) | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.example.assignment_03_18; | |
/* 정재명 | |
* 주민등록번호 생성 프로그램 | |
* | |
* 1. 주민등록번호 생성 로직에 맞게 주민등록번호 생성 | |
* 2. 입력값은 생년, 월, 일, 성별과 임의의 번호를 통해서 생성 | |
* 3. 임의번호는 Random함수의 nextInt()함수를 통해서 생성 | |
* (임의 번호 범위는 1 ~ 999999사이의 값으로 설정) | |
* */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.example.assignment_03_18; | |
/* 정재명 | |
* | |
* 놀이동산 입장권 계산 프로그램 | |
* | |
* Scanner의 입력함수, 다중 조건문 | |
* | |
*/ |
NewerOlder