
switch() case 1 ๊ฐ์ ๋ฌธ๋ฒ์ผ๋ก ์ฌ์ฉ if else ๋ฌธ์ ๋์ฒดํ ์ ์์ jumpable์ ์ด์ฉํด์ ์ต์ ํ ๊ฐ๋ฅ double์ ์์์ ๊น์ง ํด์ฃผ๋ intfor / while ๋ฐ๋ณต๋ฌธ์ผ๋ก ๋ฐฐ์ด ์ถ๋ ฅํ๊ธฐ ๊ฐ์ ํ์ ์ ๋ฐ์ดํฐ๋ฅผ ํ๋๋ก ๋ฌถ์ด ์ ์ฅํ๋ ์ฐ์๋ ๊ณต๊ฐ
int[] number = new int[5]; // ํฌ๊ธฐ 5์ง๋ฆฌ ๋ฐฐ์ด
String[] fruits = {"apple", "banana", "peach"};
๋ฐฐ์ด์ ๊ฐ์ ์ง์ด๋ฃ๊ณ ๊บผ๋ด๊ธฐ
public class Main {
public static void main(String[] args) {
String[] todos = new String[10];
todos[0] = "์์นจ ๋ฌ๋ฆฌ๊ธฐ";
todos[1] = "java ๊ณต๋ถํ๊ธฐ";
System.out.println(todos[0]);
System.out.println(todos[1]);
}
}
์ถ๋ ฅ
์์นจ ๋ฌ๋ฆฌ๊ธฐ
๊ณต๋ถํ๊ธฐ
public class Main {
public static void main(String[] args) {
String[] todos = new String[10];
todos[0] = "์์นจ ๋ฌ๋ฆฌ๊ธฐ";
todos[1] = "์์นจ ์์ฌํ๊ธฐ";
todos[2] = "java ๊ณต๋ถํ๊ธฐ";
for (int i = 0; i < todos.length; i++) {
if (todos[i] != null) {
System.out.println((i + 1) + ". " + todos[i]);
}
}
}
}
์ถ๋ ฅ
1. ์์นจ ๋ฌ๋ฆฌ๊ธฐ
2. ์์นจ ์์ฌํ๊ธฐ
3. java ๊ณต๋ถํ๊ธฐ
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String[] todos = new String[100];
int count = 0;
while (true) {
System.out.println("๋ฉ๋ด๋ฅผ ์ ํํด ์ฃผ์ธ์");
System.out.println("1.ํ ์ผ ์ถ๊ฐ");
System.out.println("2.ํ์ฌ ํ ์ผ ํ์ธ");
System.out.println("3.์ข
๋ฃ");
System.out.print("๋ฒํธ๋ฅผ ์
๋ ฅํด ์ฃผ์ธ์: ");
int choice = sc.nextInt();
sc.nextLine();
switch (choice) {
case 1:
System.out.print("ํ ์ผ์ ์
๋ ฅํ์ธ์ : ");
String todo = sc.nextLine();
todos[count] = todo;
count++;
System.out.println("ํ ์ผ์ด ์ถ๊ฐ๋์์ต๋๋ค.");
break;
case 2:
System.out.println("์ค๋ ํ ์ผ ๋ชฉ๋ก์
๋๋ค. : ");
if (count == 0) {
System.out.println("๋ฑ๋ก๋ ํ ์ผ์ด ์์ต๋๋ค.");
} else {
for (int i = 0; i < count; i++) {
System.out.println((i + 1) + "." + todos[i]);
}
}
break;
case 3:
System.out.println("์์คํ
์ ์ข
๋ฃํฉ๋๋ค : ");
sc.close();
return;
default:
System.out.println("์๋ชป๋ ์
๋ ฅ์
๋๋ค.");
}
}
}
}
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String[] todos = new String[100];
int count = 0;
while (true) {
System.out.println("๋ฉ๋ด๋ฅผ ์ ํํด ์ฃผ์ธ์");
System.out.println("1.ํ ์ผ ์ถ๊ฐ");
System.out.println("2.ํ์ฌ ํ ์ผ ํ์ธ");
System.out.println("3.์ข
๋ฃ");
System.out.print("๋ฒํธ๋ฅผ ์
๋ ฅํด ์ฃผ์ธ์: ");
int choice = sc.nextInt();
switch (choice) {
case 1:
System.out.print("ํ ์ผ์ ์
๋ ฅํ์ธ์ : ");
String todo = sc.nextLine();
todos[count] = todo;
count++;
System.out.println("ํ ์ผ์ด ์ถ๊ฐ๋์์ต๋๋ค.");
break;
}
}
}
}
์ฌ๊ธฐ์์ ํ
์คํธ ์คํ์ ํ๋๋ฐ,
'๋ฒํธ๋ฅผ ์
๋ ฅํ์ธ์' ๋ค์์ ํ ์ผ์ ์
๋ ฅ๋ ์ ํ๋๋ฐ while๋ฌธ์ผ๋ก ๋์๊ฐ์ '๋ฉ๋ด๋ฅผ ์ ํํด์ฃผ์ธ์'๊ฐ ์ถ๋ ฅ๋๋ค.
๊ทธ ์ด์ ๋ nextInt() ๋๋ฌธ์ด๋๋ค.
nextInt()๋ ์ฌ์ฉ์๊ฐ 1โ์ ์
๋ ฅํ์ ๋ ์ซ์ 1๋ง ์ฝ๊ณ ,
์ํฐ(โ)๋ ์
๋ ฅ ๋ฒํผ์ ๋จ๊ธฐ๋๋ฐ
๊ทธ ๋จ์์๋ ์ํฐ๋ฅผ ๋ฐ๋ก ๋ค์ nextLine()์ด ์ฝ๊ฒ ๋๋ฉด์
ํ ์ผ์ ์
๋ ฅ๋ฐ๋ ๋ถ๋ถ์ด ์๋์ผ๋ก ๋์ด๊ฐ๋ฒ๋ฆฌ๋ ๋ฌธ์ ๊ฐ ๋ฐ์ํ๋ค.
โ nextInt() ๋ค์์ nextLine()์ ๋ฃ์ด์ ๋ฒํผ์ ๋จ์์๋ \n์ ์ ๊ฑฐํ๋ ๊ฒ!
์์๋ก ๋ฐ์ดํฐ๋ฅผ ์ ์ฅํ๋ ๊ณต๊ฐ
โ ๋ฐ์ดํฐ๋ฅผ ํ ๋ฒ์ ์ฒ๋ฆฌํ์ง ์๊ณ ์ ๊น ๋ด์๋๋ โ๋๊ธฐ์คโ ๊ฐ์ ๊ณณ
case๋ฅผ ์ฌ์ฉํ๋๊น ๋ญ๊ฐ ๋ ํธํ ๊ฑฐ ๊ฐ๊ธฐ๋ ํ๊ณ
case์์ else ๊ฐ์ ๊ธฐ๋ฅ์ด ์์๋ค
๋ฐ๋ก default! ๋ํดํธ!
case 1,2,3 ๋ด๊ฐ ์ค์ ํ ์ผ์ด์ค์ ํด๋น๋์ง ์์ผ๋ฉด ์ ๋ถ default๋ก ๊ฐ๋ else์ ๋๊ฐ์ ๊ธฐ๋ฅ์ด์๋ค
Array๋ ํฌ๊ฒ ๋ค๋ฅธ ๊ฒ ๊ฐ์ง๋ ์์๋ฐ
String[100] ์ด๋ ๊ฒ ํ์ด์ฌ์์๋ ๊ณต๊ฐ์ ๋ง๋ค์ด๋์ง ์์๋ ๊ฑฐ ๊ฐ๋ค
์ฌํผ ์๋ฐ๋ ๋ถ์น์ ? ๊ผผ๊ผผ? ํ๋คโฆ
์ ํ๋ฒ ๊ธฐ์ ๋
ธํธwith์๋ ์ด๋ผ๋ ์ฌ๋์ด ์ด
ใAI ์๋ ๊ฐ๋ฐ์ ์ํ ํ์ IT ์ง์ ๊ธฐ์ ๋
ธํธใ๋ฅผ ๊ตฌ์
ํด
129ํ์ด์ง๊น์ง ์ฝ์๋ค
๋น์ ๊ณต์๋ ์๊ธฐ ์ฝ๊ฒ, ๊ฐ๋ฐ์ ์์ํ ๋ ์๋ฉด ์ข์ ๊ฒ๋ค์ด ์๋ฉ ์ ํ์์๋ค
์ด๊ฑธ๋ก ์์ํด์ ๋งค์ผ CS ๊ณต๋ถ์ ์ด๋ก ๋ ํด์ผ๊ฒ ๋ค
> ๋ด๊ฐ ์ํ๋ ๊ธฐ๋ฅ์ ๋ด๊ฐ ํ ์ผ์ ๋ฑ๋กํ๋ฉด
> ํ๋ก๊ทธ๋จ์ ๊ป๋ค ์ผ๋ ๊ทธ ํ ์ผ ๋ฐ์ดํฐ๊ฐ ์ ์ฅ๋์ด์ ๋ถ๋ฌ์์ง๋ ๊ฒ
> โ JSON์ ์ฌ์ฉํด์ ๋ง๋ค๊ธฐ
task, isDone ํ๋ List<Todo> ํ์ add(), get(), remove() ๋ฑ ๋ฉ์๋ ์ฌ์ฉ๋ฒ toJson() fromJson() FileWriter, FileReader, try-with-resources, try-catch public class Todo {
String task; // ํ ์ผ
boolean isDone; // ํ๋ ์ ํ๋
}
ํด๋์ค๋?
๐ ์๋ก์ด ๋ฐ์ดํฐ๋ฅผ ๋ง๋๋ ์ค๊ณ๋
์:
ํ ์ผ:
์๋ฃ ์ฌ๋ถ:
์ด๋ฐ ๊ตฌ์กฐ๋ฅผ ๋ง๋ค๊ณ ์ถ์ ๋ ์๋ฐ์์ ์ด๋ ๊ฒ ํํํจ:
public class Todo {
String task; // ํ ์ผ
boolean isDone; // ํ๋ ์ ํ๋
}
์ด๋ ๊ฒ ์ค๊ณ๋๋ฅผ ๋ง๋ค์์ผ๋ฉด ์ฌ์ฉ ๊ฐ๋ฅํจ:
Todo t = new Todo();
์ด๋ฌ๋ฉด ์๋กญ๊ฒ ๋ง๋ค์ด์ก์ง๋ง ์์ ๋ฐ์ดํฐ๊ฐ ์์ด์ ๋ฃ์ด์ค์ผ ํจ:
t.task = "๋ฐฅ ๋จน๊ธฐ";
t.isDone = true;
์์ฑ์๋ผ๋ ๊ฑธ ์ฐ๋ฉด ๋ ๊ฐ๋จํ ์ธ ์ ์์:
Todo t = new Todo("๋ฐฅ ๋จน๊ธฐ", true);
public class Todo {
String task; // ํ ์ผ
boolean isDone; // ํ๋ ์ ํ๋
public Todo(String task, boolean isDone) {
this.task = task;
this.isDone = isDone;
}
}
โ ์ฌ๊ธฐ์ this๋ ์ด ํด๋์ค ์์ ์๋ task ๋ณ์๋ฅผ ๋งํด.
๋ด๊ฐ task๋ผ๊ณ ์ด ๊ฑธ ํด๋์ค์ task๋ก ์ดํดํ๋ค๋ ๋ป!
ArrayList๋?
import java.util.ArrayList;
ArrayList<Todo> todos = new ArrayList<>();
์์ ์ฝ๋:
import java.util.ArrayList;
public class Main {
public static void main(String[] args) {
ArrayList<Todo> todos = new ArrayList<>();
// ํ ์ผ ์ถ๊ฐ
todos.add(new Todo("Java ๊ณต๋ถํ๊ธฐ", false));
todos.add(new Todo("์ด๋ํ๊ธฐ", true));
todos.add(new Todo("๋ณต์ตํ๊ธฐ", false));
// ์ถ๋ ฅ
for (int i = 0; i < todos.size(); i++) {
System.out.println((i + 1) + ". " + todos.get(i));
}
}
}
์๋๋ ํ์ ์ ์ง์ ์จ์(int, String, boolean) ๊ณ ์ ํ์ง๋ง
์ ๋ค๋ฆญ์ ๊บฝ์ < > ์์ ๋ค์ด๊ฐ๋ ํ์ ์ ๋์ค์ ์ ํด์ ์ ์ฐํ๊ฒ ์ธ ์ ์์!
์ด๋ ๊ฒ ํ์ผ๋๊น Todo ํด๋์ค์ String๊ณผ boolean์ด ์์ผ๋ฉด ์ค๋ฅ๊ฐ ๋ธ โ.add() : ArrayList์ ์๋ก์ด ๊ฑธ ์ถ๊ฐํ ๋ ์ฌ์ฉ
.get(index) : ๋ฆฌ์คํธ์์ ๋ช ๋ฒ์งธ ์์๋ฅผ ๋ถ๋ฌ์ฌ ๋ ์ฌ์ฉ
get(999) ์ด๋ฐ ์์ผ๋ก ์๋ ์ธ๋ฑ์ค๋ฅผ ๋ถ๋ฅด๋ฉด IndexOutOfBoundsException ์๋ฌ ๋ฐ์!
โ ๋ฐ๋์ .size()๋ก ํฌ๊ธฐ๋ฅผ ํ์ธํ๊ณ ์ ๊ทผํด์ผ ํจ
.remove(index) : ๋ฆฌ์คํธ์์ ํด๋น ์ธ๋ฑ์ค๋ฅผ ์ ๊ฑฐํ ๋ ์ฌ์ฉ
import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
ArrayList todos = new ArrayList<>();
while (true) {
System.out.println("\n๋ฉ๋ด๋ฅผ ์ ํํด ์ฃผ์ธ์");
System.out.println("1. ํ ์ผ ์ถ๊ฐ");
System.out.println("2. ํ์ฌ ํ ์ผ ํ์ธ");
System.out.println("3. ํ ์ผ ์๋ฃ ์ฒ๋ฆฌ");
System.out.println("4. ํ ์ผ ์ญ์ ");
System.out.println("5. ์ข
๋ฃ");
System.out.print("๋ฒํธ๋ฅผ ์
๋ ฅํด ์ฃผ์ธ์: ");
int choice = sc.nextInt();
sc.nextLine();
switch (choice) {
case 1:
System.out.print("ํ ์ผ์ ์
๋ ฅํ์ธ์ : ");
String task = sc.nextLine();
todos.add(new Todo(task, false));
System.out.println("ํ ์ผ์ด ์ถ๊ฐ๋์์ต๋๋ค.");
break;
case 2:
System.out.println("์ค๋ ํ ์ผ ๋ชฉ๋ก์
๋๋ค.");
if (todos.isEmpty()) {
System.out.println("์ค๋ ํ ์ผ์ด ์์ต๋๋ค.");
} else {
for (int i = 0; i < todos.size(); i++) {
System.out.println((i + 1) + ". " + todos.get(i));
}
}
break;
case 3:
System.out.println("์๋ฃํ ๋ฒํธ๋ฅผ ์
๋ ฅํ์ธ์.");
int choice2 = sc.nextInt();
sc.nextLine();
if (choice2 > 0 && choice2 <= todos.size()) {
todos.get(choice2 - 1).isDone = true;
System.out.println("์๋ฃ๋์์ต๋๋ค.");
} else {
System.out.println("์๋ชป๋ ๋ฒํธ์
๋๋ค.");
}
break;
case 4:
System.out.println("์ญ์ ํ ๋ฒํธ๋ฅผ ์
๋ ฅํ์ธ์.");
int choice3 = sc.nextInt();
sc.nextLine();
if (choice3 > 0 && choice3 <= todos.size()) {
todos.remove(choice3 - 1);
System.out.println("์ญ์ ๋์์ต๋๋ค.");
} else {
System.out.println("์๋ชป๋ ๋ฒํธ์
๋๋ค.");
}
break;
case 5:
System.out.println("์ข
๋ฃํฉ๋๋ค.");
return;
default:
System.out.println("์๋ชป๋ ์
๋ ฅ์
๋๋ค.");
}
}
}
์ด๋ ๊ฒ ๋ฆฌํํ ๋ง ํ๋ค
๋ฐ์ดํฐ ์ ์ฅ์ด ๋ฐฐ์ด์์ ArrayList๋ก ๋ฐ๋์๊ณ
๋ฐ์ดํฐ ๊ตฌ์กฐ๋ String์์ Todo ํด๋์ค๋ก ๋ฐ๋์๋ค
main์์ ์ ๋ถํ๊ณ ์๋ ์ฝ๋๊ตฌ์กฐ๋ ๋ฉ์๋๋ฅผ ๋ถ๋ฆฌํ๋ค
์ถ๋ ฅ๋ ์ง์ ์ถ๋ ฅ์์ toString()์ ์ค๋ฒ๋ผ์ด๋ฉํด์ ๋ณด๊ธฐ์ข๊ณ ๊น๋ํ๊ฒ ํ๋ค!
์ด๋ฒ ๋ฆฌํฉํ ๋ง์ ๋จ์ํ ์ ๋ฆฌ๊ฐ ์๋๋ผ
โ์ ์ฐจ์ ์ฝ๋โ์์ โ๊ฐ์ฒด์งํฅ ํ๋ก๊ทธ๋๋ฐโ์ผ๋ก์ ๋์ฝ์ด์๋ค๊ณ ํ๋ค! Gpt ์ ํํ ๐
์ค์นํ๊ณ ์ ์ฉํ๋ค๊ฐ ๋นก์ณ์ ๋
ธํธ๋ถ ๋ถ์ฌ๋ปโฆ. ๊ฒฐ๊ตญ ๋ ๋ฆฌ๊ณ ํ๋ก์ ํธ ๋ค์ ๋ง๋ค์๋คโฆใ
Gson์ด๋? ์๋ฐ ๊ฐ์ฒด๋ฅผ Json ๋ฌธ์์ด๋ก ๋ฐ๊ฟ์ฃผ๋ ๊ตฌ๊ธ์์ ๋ง๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ
๋ด๊ฐ ๋ง๋ Todo ๊ฐ์ฒด๋ฅผ ๊ทธ๋ฅ ์ ์ฅํ๋ฉด ์ ์ฅ์ด ์๋์ง๋ง Json์ผ๋ก ํ๋ฉด ์ ์ฅ์ด ๋๋ค!!
๊ฐ์ฒด๋ฅผ Json์ผ๋ก ๋ฐ๊พธ๊ธฐ toJson, Json์ ๊ฐ์ฒด๋ก ๋ฐ๊พธ๊ธฐ fromJson
Gson gson = new Gson();
String json = gson.toJson(todos); // โ ๋ฌธ์์ด๋ก ๋ณํ
System.out.println(json);
์ด๋ฌ๋ฉด Json์ผ๋ก ๋ฐ๋๊ณ
Type type = new TypeToken<ArrayList<Todo>>(){}.getType();
ArrayList<Todo> loaded = gson.fromJson(json, type);
์ด๋ฌ๋ฉด ๋ฌธ์์ด์ด ๋ค์ ๊ฐ์ฒด๋ก ๋ฐ๋๋๋ฐ
๊ฐ์๊ธฐ type์ด ํ์ด๋์๋คโฆ??
Java๋ ์ ๋ค๋ฆญ ํ์
์ ๋ฐํ์์ ์์ด๋ฒ๋ ค.
๊ทธ๋์ ArrayList์ฒ๋ผ ๋ณต์กํ ํ์
์
์ง์ ํ์
์ ๋ณด๋ฅผ ์๋ ค์ค์ผ ํด์ TypeToken์ ์จ์ผํ๋ค๊ณ ํ๋ค.
ํ์ผ๋ก ์ ์ฅํ๊ธฐ ์ํด์ ์๋ก์ด ํ์ผ์ ๋ง๋ค์ด์ผํ๋๋ฐ
์์ ๋์ด์ผ ํ ๋ฌธ๋ฒ์ด ์๋ค
FileWriter๋ฅผ ์๋์ผ๋ก ๋ซ์์ฃผ๋ ๊ธฐ๋ฅ
try (FileWriter writer = new FileWriter(filename)) {
writer.write(json);
}
catch (IOException e) {
System.out.println("โ ์ ์ฅ ์คํจ: " + e.getMessage());
}
try์์ ์์ธ๊ฐ ๋ฐ์ํ๋ฉด ์ก์์ฃผ๋ ์ฝ๋
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import com.google.gson.Gson;
public class TodoManager {
public static void saveTodosToFile(ArrayList<Todo> todos, String filename) {
Gson gson = new Gson();
String json = gson.toJson(todos);
try (FileWriter writer = new FileWriter(filename)) {
writer.write(json);
System.out.println("โ
์ ์ฅ ์๋ฃ: " + filename);
} catch (IOException e) {
System.out.println("โ ์ ์ฅ ์คํจ: " + e.getMessage());
}
}
}
์ด๋ ๊ฒ ์๋ก์ด ์๋ฐ ํ์ผ์ ๋ง๋ค๊ณ
๋ฉ์ธ ํ์ผ์ ์๋ ์ฝ๋ ์ถ๊ฐ
case 5:
TodoManager.saveTodosToFile(todos,"todos.json");
System.out.println("์ข
๋ฃํฉ๋๋ค.");
return;
์ข ๋ฃํ๋ฉด todos.json์ ์ ์ฅํ๋ ์ฝ๋๊ฐ ์คํ๋จ
์ ์ฅ๋ JSON ์์
json
[{"task":"์ ๋
์์ฌ","isDone":false},{"task":"์ผ๋ณธ์ด๊ณต๋ถ","isDone":false},{"task":"์ก์","isDone":false},{"task":"๊ฒ์","isDone":false},{"task":"๋
์","isDone":false}]
์ด์ ์ JSON์ ๋ค์ ์ฝ๋ ์ฝ๋๋ง ์ถ๊ฐํ๋ฉด ๋๋ค
โ JSON โ ๊ฐ์ฒด ๋ณต์
gson.fromJson(reader, type);
์ฒซ ๋ฒ์งธ ์ธ์: reader (ํ์ผ์์ ์ฝ์ JSON ๋ฌธ์์ด)
๋ ๋ฒ์งธ ์ธ์: ์ด๋ค ํ์
์ผ๋ก ๋ณต์ํ ์ง (ArrayList<Todo>)
์์ธ ์ฒ๋ฆฌ
catch (Exception e) {
System.out.println(e.getMessage());
}
์๋ ํ์ผ์ด๋ฉด โ No such file or directory
ํ๋ก๊ทธ๋จ์ด ์ฃฝ์ง ์๊ณ ๋น ๋ฆฌ์คํธ ๋ฐํํ๊ฒ ์ฒ๋ฆฌ
public static ArrayList<Todo> loadTodosFromFile(String filename) {
Gson gson = new Gson();
try (FileReader reader = new FileReader(filename)) {
Type type = new TypeToken<ArrayList<Todo>>() {}.getType();
ArrayList<Todo> todos = gson.fromJson(reader, type);
System.out.println("โ
๋ถ๋ฌ์ค๊ธฐ ์๋ฃ");
return todos;
} catch (IOException e) {
System.out.println("โ ๋ถ๋ฌ์ค๊ธฐ ์คํจ: " + e.getMessage());
return new ArrayList<>(); // ์คํจ ์ ๋น ๋ฆฌ์คํธ ๋ฐํ
}
}
๊ทธ๋ฆฌ๊ณ ๋ฉ์ธ ํ์ผ์
ArrayList<Todo> todos = TodoManager.loadTodosFromFile("todos.json");
๊ฒฐ๊ณผ๋?
๋ฉ๋ด๋ฅผ ์ ํํด ์ฃผ์ธ์
1. ํ ์ผ ์ถ๊ฐ
2. ํ์ฌ ํ ์ผ ํ์ธ
3. ํ ์ผ ์๋ฃ ์ฒ๋ฆฌ
4. ํ ์ผ ์ญ์
5. ์ข
๋ฃ
๋ฒํธ๋ฅผ ์
๋ ฅํด ์ฃผ์ธ์: 2
์ค๋ ํ ์ผ ๋ชฉ๋ก์
๋๋ค.
1. ์ ๋
์์ฌ[]
2. ์ผ๋ณธ์ด๊ณต๋ถ[]
3. ์ก์[]
4. ๊ฒ์[]
5. ๋
์[]
์ด๋ ๊ฒ ๋ฌ๋ค!!!! ๋ ์ฑ๊ณต ~!!! ๐
์ค๋ ์ค์ ๊ณต๋ถ๊ฐ ๋๋ฌด ๋นจ๋ฆฌ ๋๋์
์ค๋ ๊ฐ๋ณ๊ฒ ์ค์ตํด๋ณธ๊ฑธ ์ข ๋ ๋ฐ์ ? ๊ฐ๋ฐ ์์ผ๋ดค๋๋ฐ
ํด๋์ค๋ถํฐ ์์ํด์ ์์, ์ค๋ฒ๋ผ์ด๋
Json, Gson, ArrayList, ์ ๋ค๋ฆญ ๋ฑ ์ ๋ง ๋ง์ ๊ฒ๋ค์ ํ ๋ฒ์ฉ ํ์ด๋ณธ ๊ฑฐ ๊ฐ๋ค
์ค๋์ ์ฒ์์ด๋ผ ์ ๋ชจ๋ฅด๊ณ ์ ์ฐ๋์ง๋ง ์๊ฒ ๋๋ ๋ ์ด์์ง๋ง
๋ค์์ โ์ ์ด๊ฑฐ ํ์ํ๋ฐโ๋ผ๋ ์ง ์ ํ ์์ผ๋ฉด ๊ทธ ์๋๋ ์ ์ ์๊ฒ ์ง?
๋ง์ ํ๋ค ๋ณด๋๊น ์๋ ๋ฐฉ๋ํด์ง๊ณ
๊ทธ๋์ ์ด๊ฑฐ GitHub๋ก ๋จ๊ฒจ๋๊น๋ ๊ณ ๋ฏผ ์ค์ด๋ค
์ผ๋จ ์ค๋ ๊ณต๋ถ๋ ๋! ์ ๋ง ๋ฉ์ง 3์ผ์ฐจ์๋ค โจ
์! ๋ฐฑ์ค ๋ฌธ์ ํ๋ฌ๊ฐ์ผ์ง~!
velog์ฐ๋ # ์ด๊ฑฐ ์ ์๋๋๊ฑฐ์ง ? ๊ณต๋ฐฑ์์ผ๋ฉด ๋๋ค๋๋ฐ