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
// 김명지 | |
public class Main { | |
public static class Pager{ | |
private final long totalCount; // 전체 게시글 수 | |
public Pager(long totalCount) { | |
this.totalCount = totalCount; | |
} | |
public String html(long currentPage) { |
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.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.util.HashSet; | |
import java.util.Objects; | |
public class Main { | |
public static class Pair { |
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.FileOutputStream; | |
import java.io.IOException; | |
import java.io.OutputStreamWriter; | |
import java.io.Writer; | |
import java.util.Map; | |
import java.util.Properties; | |
public class Main { |
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 28 commits █░░░░░░░░░░░░░░░░░░░░ 4.9% | |
🌆 Daytime 220 commits ████████▏░░░░░░░░░░░░ 38.9% | |
🌃 Evening 264 commits █████████▊░░░░░░░░░░░ 46.6% | |
🌙 Night 54 commits ██░░░░░░░░░░░░░░░░░░░ 9.5% |
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 a8 { | |
static final int SIX_PERCENT_AMOUNT = 12 * 1000000; | |
static final int FIFTEEN_PERCENT_AMOUNT = 46 * 1000000; | |
static final int TWENTYFOUR_PERCENT_AMOUNT = 88 * 1000000; | |
static final int THIRTYFIVE_PERCENT_AMOUNT = 150 * 1000000; | |
static final int THIRTYEIGHT_PERCENT_AMOUNT = 300 * 1000000; |
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.*; | |
public class a7 { | |
public static void main(String[] args) { | |
// 입력받기 | |
System.out.println("[로또 당첨 프로그램]\n"); | |
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.ArrayList; | |
import java.util.Random; | |
import java.util.Scanner; | |
public class a6 { | |
public static void main(String[] args) { | |
// 입력받기 |
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.time.LocalDate; | |
import java.util.ArrayList; | |
import java.util.Scanner; | |
public class a5 { | |
public static void main(String[] args) { | |
// 입력받기 |
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 a4 { | |
public static void main(String[] args) { | |
// 입력받기 | |
System.out.println("[주민등록번호 계산]"); |
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 a3 { | |
static final int BASIC_PRICE = 10000; | |
static final int SPECIAL_DISCOUNT_PRICE = 4000; | |
static final int NORMAL_DISCOUNT_PRICE = 8000; | |
public static void main(String[] args) { |
NewerOlder