diff --git a/README.md b/README.md index 4c8a22f..f041cee 100644 --- a/README.md +++ b/README.md @@ -1 +1,22 @@ -# ์ž๋ฐ” ๊ณต๋ถ€ +### ๐Ÿฆ ๋ฉ‹์Ÿ์ด์‚ฌ์ž์ฒ˜๋Ÿผ ๋ฐฑ์—”๋“œ + +# ๐Ÿ—“ ๊ณต๋ถ€ ์ผ์ • +- 2022-10-04 : Git + ์•Œ๊ณ ๋ฆฌ์ฆ˜ + +- 2022-10-05 : Intellij Git ์‚ฌ์šฉ + ์ž๋ฐ”๋ž€? + interface ์˜์กด์„ฑ๊ณผ ๋‹คํ˜•์„ฑ์„ ํ†ตํ•œ ์˜ˆ์ œ ๋ฌธ์ œ + +- 2022-10-06 : List/Set/Map + File(ํŒŒ์ผ ์ž…์ถœ๋ ฅ) + +- 2022-10-07 : Project(๋Œ€์šฉ๋Ÿ‰๋ฐ์ดํ„ฐ์ฒ˜๋ฆฌ) + +
+ +# โš™๏ธ ๊ธฐ์ˆ  ์Šคํƒ +
+ Java +
+ +
+ +## โ˜๏ธ ํ”„๋กœ์ ํŠธ ์ฃผ์š” ๊ธฐ๋Šฅ + diff --git a/git/Lion-Java/src/Date10_06/File/FindFile.java b/git/Lion-Java/src/Date10_06/File/FindFile.java index 485599e..d6b28a0 100644 --- a/git/Lion-Java/src/Date10_06/File/FindFile.java +++ b/git/Lion-Java/src/Date10_06/File/FindFile.java @@ -11,3 +11,11 @@ public static void main(String[] args) { } } } + +/* +.\.git +.\.idea +.\git +.\Java-Study.iml +.\README.md +*/ diff --git a/git/Lion-Java/src/Date10_06/File/ReadFileMain.java b/git/Lion-Java/src/Date10_06/File/ReadFileMain.java index 336c84f..ba7815b 100644 --- a/git/Lion-Java/src/Date10_06/File/ReadFileMain.java +++ b/git/Lion-Java/src/Date10_06/File/ReadFileMain.java @@ -5,7 +5,7 @@ public class ReadFileMain { public static void main(String[] args) throws IOException { ReadFile rf = new ReadFile - ("C:\\Users\\qowhx\\OneDrive\\๋ฐ”ํƒ• ํ™”๋ฉด\\hello.txt"); + ("ํŒŒ์ผ ์œ„์น˜"); System.out.println(rf.onefilereader()); diff --git a/git/Lion-Java/src/Date10_07/Project/PopulationStatistics.java b/git/Lion-Java/src/Date10_07/Project/PopulationStatistics.java deleted file mode 100644 index 2e48637..0000000 --- a/git/Lion-Java/src/Date10_07/Project/PopulationStatistics.java +++ /dev/null @@ -1,77 +0,0 @@ -package Date10_07.Project; - - - -import java.io.BufferedReader; -import java.io.FileNotFoundException; -import java.io.FileReader; -import java.io.IOException; -import java.nio.charset.StandardCharsets; -import java.nio.file.Files; -import java.nio.file.Path; -import java.nio.file.Paths; - -public class PopulationStatistics { - - static String address = "C:\\Users\\qowhx\\OneDrive\\๋ฐ”ํƒ• ํ™”๋ฉด\\์ธ๊ตฌ\\2021_์ธ๊ตฌ๊ด€๋ จ์—ฐ๊ฐ„์ž๋ฃŒ_20221006_47106.csv"; - - - public static void ReadByChar() throws IOException{ // 1๊ธ€์ž์”ฉ ์ฝ๊ธฐ - FileReader fileReader = new FileReader(address); - - String fileContents =""; - while(fileContents.length()<1_000_000) { - char c = (char) fileReader.read(); // read()๋Š” ๋ฐ˜ํ™˜์„ intํ˜•์œผ๋กœ ํ•˜๊ธฐ ๋•Œ๋ฌธ์— ํ˜•๋ณ€ํ™˜์ด ํ•„์š” - fileContents += c; - System.out.println(fileContents); - } - System.out.println(fileContents); - } - - public static String ReadByOneLine() throws IOException{ // 1์ค„ ์ฝ๊ธฐ - BufferedReader reader = new BufferedReader( - new FileReader(address) - ); - String str = reader.readLine(); - reader.close(); - return str; - } - - public static void ReadByLine() throws IOException{ // 1์ค„์”ฉ ์ „๋ถ€ ์ฝ๊ธฐ - BufferedReader reader = new BufferedReader( - new FileReader(address) - ); - String str; - while ((str = reader.readLine()) != null) { - System.out.println(str); - } - reader.close(); - } - - public static void ReadByLine2() { // 1์ค„์”ฉ ์ „๋ถ€ ์ฝ๊ธฐ (2) - try (BufferedReader br = Files.newBufferedReader( - Paths.get(address), StandardCharsets.UTF_8)) { - String line; - while ((line = br.readLine()) != null) { - System.out.println(line); - } - } catch (IOException ex) { - throw new RuntimeException(ex); - } - } - - public static PopulationMove parse(String data) throws IOException { - String[] str = data.split(","); - int FromSido = Integer.parseInt(str[0]); - int ToSido = Integer.parseInt(str[6]); - - return new PopulationMove(FromSido,ToSido); - } - - public static void main(String[] args) throws IOException { - // ReadByChar(); - // ReadByLine(); - // ReadByLine2(); - System.out.println(parse(ReadByOneLine())); - } -}