๐ฏ
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.File; | |
| import java.io.FileWriter; | |
| import java.io.IOException; | |
| public class pagination { | |
| static class Pager { | |
| private long totalCount; | |
| private long pageSize = 10; | |
| public Pager() { |
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.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.InputStreamReader; | |
| import java.util.ArrayList; | |
| import java.util.HashMap; | |
| import java.util.LinkedList; | |
| import java.util.Map; | |
| public class distance { | |
| public static final int MAX_POINT = 10; |
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.*; | |
| import java.util.HashMap; | |
| import java.util.LinkedHashMap; | |
| import java.util.Map; | |
| public class html { | |
| public static void main(String[] args) { | |
| LinkedHashMap<String, String> system = new LinkedHashMap<>(); |
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.HashMap; | |
| import java.util.LinkedHashMap; | |
| import java.util.Scanner; | |
| //ํฉํฌ์ | |
| public class workout_8th { | |
| // ์ฐ์๋ ๊ณผ์ธ๊ธ์ก ๊ณ์ผ ํ๋ก๊ทธ๋จ | |
| // - ์ํ ๋ชฉ์ : Scanner์ ์ ๋ ฅํจ์์ ์กฐ๊ฑด๋ฌธ ๋ฐ ๋ฐ๋ณต๋ฌธ ๊ณผ ๋ฐฐ์ด, ํจ์๋ฅผ ํตํ ๊ณผ์ธ ๋ก์ง ์์ฑ | |
| // - ๊ฐ๋ต ์๊ฐ : ๋ํ๋ฏผ๊ตญ ํ๋ฒ์ ๊ตญ๋ฏผ์ ์๋ฌด์ ๊ถ๋ฆฌ๋ฅผ ๊ท์ ํ๊ณ ์์ต๋๋ค. ์ด์ค ๋ฉ์ธ์ ์๋ฌด๋ ๊ตญ | |
| // ๋ฏผ์ 3๋ ์๋ฌด์ค ํ๋์ ๋๋ค. ๋ชจ๋ ๊ตญ๋ฏผ์ 1๋ ๋์ ์ด์ฌํ ๋ฒ ์๋์ ๋ํด์ ์ธ๊ธ์ ๋ฉ๋ถํ์ฌ |
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 workout_7th { | |
| public static LinkedList<Integer> lottoGenerator(){ | |
| HashSet lottos = new HashSet(); | |
| for (int i = 0; lottos.size() < 6; i++) { | |
| int lotto = (int)(Math.random()*45)+1; | |
| lottos.add(lotto); | |
| } |
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.HashMap; | |
| import java.util.Random; | |
| import java.util.Scanner; | |
| import java.util.TreeMap; | |
| // ํฉํฌ์ | |
| public class workout_6th { | |
| public static void main(String[] args) { | |
| Scanner sc = new Scanner(System.in); |
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.util.Arrays; | |
| import java.util.Scanner; | |
| // ํฉํฌ์ | |
| public class workout_5th { | |
| // ํ ๋ฌ์ ๋ฌ๋ ฅ์ ๋ฌธ์์ด ๋ฐฐ์ด๋ก ์์ฑ | |
| private static String[] generateCalendar(int year, int month) { | |
| LocalDate date = LocalDate.of(year, month, 1); | |
| int dayOfWeek = date.getDayOfWeek().getValue() % 7; |
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; | |
| import java.util.Random; | |
| public class workout_4th { | |
| // ๊ณผ์ 4 - ์ฃผ๋ฏผ๋ฑ๋ก๋ฒํธ ์์ฑ ํ๋ก๊ทธ๋จ์ ์์ฑํ๋ค. | |
| // ์ํ ๋ชฉ์ : Scanner์ ์ ๋ ฅํจ์์ ์กฐ๊ฑด๋ฌธ ๋ฐ Randomํด๋์ค๋ฅผ ํตํ ์ฃผ๋ฏผ๋ฒํธ ์์ฑ ๋ก์ง ์์ฑ | |
| // - ๊ฐ๋ต ์๊ฐ : ์ฃผ๋ฏผ๋ฒํธ๋ ์ถ์๋ ๋์ ์ถ์์๊ณผ ์ฑ๋ณ์ ๋ํ ๋ด์ฉ์ ํฌํจํ์ฌ ๋ง๋ค์ด์ง๋ ์ซ์๋ก ๋ | |
| // ์ฒด๊ณ์ ๋๋ค. ์ด์ 2020๋ ๋ ๋ถํฐ ์์ฑ ์กฐ๊ฑด์ด ๋ณ๊ฒฝ๋์์ต๋๋ค. ์ด๋ฅผ ์กฐ๊ฑด์ ๋ง๊ฒ ์์ฑํ๋ ํ๋ก๊ทธ๋จ์ ์์ฑํด ๋ณด์ธ์. | |
| // - ์ ๋ ฅ๊ฐ์ 2020๋ ๋ ์ดํ๋ก ์ ๋ ฅํ๋ค๋ ์ ์ ๋ก ์์ฑํด ์ฃผ์ธ์. |
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 Main { | |
| public static void main(String[] args) { | |
| // 3๋ฒ ๊ณผ์ - ๋์ด๋์ฐ ์ ์ฅ๊ถ ๊ณ์ฐ ํ๋ก๊ทธ๋จ๋ฅผ ์์ฑํ๋ค. | |
| // - ์ํ ๋ชฉ์ : 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.Scanner; | |
| public class Main { | |
| public static void main(String[] args) { | |
| // 2๋ฒ ๊ณผ์ - ๊ฒฐ์ ๊ธ์ก ์บ์๋ฐฑ ๊ณ์ฐ ํ๋ก๊ทธ๋จ์ ์์ฑํ๋ค. | |
| // - ์ํ ๋ชฉ์ : Scanner์ ์ ๋ ฅํจ์์ ์กฐ๊ฑด๋ฌธ์ ํตํ ์บ์๋ฐฑ ๊ณ์ฐ ๋ก์ง ์์ฑ | |
| // - ๊ฐ๋ต ์๊ฐ : ์ง๋ถ์นด๋๋ก ๊ฒฐ์ ๋ฅผ ํ๊ฒ๋๋ฉด ์ด์ ๋ํ ์บ์๋ฐฑ์ ์ ๊ณตํด ์ค๋๋ค. ์ฃผ์ด์ง ์บ์๋ฐฑ | |
| // ๊ธ์ก์ ๊ณ์ฐํ๋ ํ๋ก๊ทธ๋จ์ ์์ฑํด ๋ณด์ธ์. |
NewerOlder