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; |
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.Scanner; | |
| class Dir { | |
| int x; | |
| int y; |
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
| /* | |
| 김명환 | |
| html파일을 직접 작성해 보는 예제. | |
| */ | |
| import java.io.BufferedWriter; | |
| import java.io.File; | |
| import java.io.FileWriter; | |
| import java.io.IOException; |
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.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.Scanner; | |
| public class JavaStudy08 { |
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.*; | |
| public class JavaStudy07 { | |
| public static void main(String[] args) { | |
| Random num = new Random(); |
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.Random; | |
| import java.util.Scanner; | |
| public class JavaStudy06 { | |
| 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
| /* | |
| 김명환 | |
| 달력 출력. | |
| */ | |
| import java.time.LocalDate; | |
| import java.time.YearMonth; | |
| import java.time.temporal.ChronoField; | |
| import java.util.Scanner; |
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.Random; | |
| import java.util.Scanner; | |
| public class JavaStudy04 { | |
| //주민등록번호 출력 |
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.Scanner; | |
| public class JavaStudy03 { | |
| //입장료 출력 | |
| public static void ticketInformation(int age, int time, String benefit1, String benefit2) { |
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.Scanner; | |
| public class JavaStudy02 { | |
| // 캐시백 출력 | |
| public static void cashback(int result) { |
NewerOlder