This file contains 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 surprise_assignment; | |
public class Pager { | |
private final long totalCount; | |
public Pager(long totalCount) { | |
this.totalCount = totalCount; | |
} |
This file contains 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 surprise_assignment; | |
import java.util.Arrays; | |
import java.util.Scanner; | |
public class Coordinate { | |
private int myX; | |
private int myY; | |
private int[][] coordinates; |
This file contains 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; | |
public class PropertyToHTML { | |
public static void main(String[] args) throws IOException { | |
File file = new File("src/property.html"); | |
BufferedWriter bw = new BufferedWriter(new FileWriter(file)); |
This file contains 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
1 |
This file contains 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
🌞 Morning 83 commits ███████▍░░░░░░░░░░░░░ 35.6% | |
🌆 Daytime 97 commits ████████▋░░░░░░░░░░░░ 41.6% | |
🌃 Evening 53 commits ████▊░░░░░░░░░░░░░░░░ 22.7% | |
🌙 Night 0 commits ░░░░░░░░░░░░░░░░░░░░░ 0.0% |
This file contains 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
/* | |
김승일 | |
깜짝과제2 | |
*/ | |
package s_project; | |
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Path; |
This file contains 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 Miniproject8 { | |
// Enum으로 상수 정의 | |
public enum IncomeLevel { | |
LEVEL_1(0, 12000000, 6, 0), | |
LEVEL_2(12000000, 46000000, 15, 1080000), | |
LEVEL_3(46000000, 88000000, 24, 5220000), | |
LEVEL_4(88000000, 150000000, 35, 14900000), |
This file contains 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
/* | |
김승일 | |
깜짝과제1 | |
*/ | |
import java.util.Scanner; | |
public class s_project1 { | |
public static void displayMenu() { |
This file contains 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.Collections; | |
import java.util.Random; | |
import java.util.Scanner; | |
public class Miniproject7 { | |
public static void main(String[] args) { | |
System.out.println("[로또 당첨 프로그램]\n"); | |
try (Scanner sc = new Scanner(System.in)) { |
This file contains 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 Miniproject6 { | |
public static void main(String[] args) { | |
try(Scanner sc = new Scanner(System.in)) { | |
System.out.print("총 진행할 투표수를 입력해 주세요."); | |
int total = sc.nextInt(); | |
System.out.print("가상 선거를 진행할 후보자 인원을 입력해 주세요."); |
NewerOlder