diff --git a/src/.idea/.gitignore b/src/.idea/.gitignore
new file mode 100644
index 0000000..26d3352
--- /dev/null
+++ b/src/.idea/.gitignore
@@ -0,0 +1,3 @@
+# Default ignored files
+/shelf/
+/workspace.xml
diff --git a/src/.idea/misc.xml b/src/.idea/misc.xml
new file mode 100644
index 0000000..694f698
--- /dev/null
+++ b/src/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/.idea/modules.xml b/src/.idea/modules.xml
new file mode 100644
index 0000000..209385b
--- /dev/null
+++ b/src/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/.idea/vcs.xml b/src/.idea/vcs.xml
new file mode 100644
index 0000000..6c0b863
--- /dev/null
+++ b/src/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/out/production/spartaSpringBasic/Main.class b/src/out/production/spartaSpringBasic/Main.class
new file mode 100644
index 0000000..86969b0
Binary files /dev/null and b/src/out/production/spartaSpringBasic/Main.class differ
diff --git a/src/out/production/spartaSpringBasic/base/Case1.class b/src/out/production/spartaSpringBasic/base/Case1.class
new file mode 100644
index 0000000..e3c37f8
Binary files /dev/null and b/src/out/production/spartaSpringBasic/base/Case1.class differ
diff --git a/src/out/production/spartaSpringBasic/younggyu/Car.class b/src/out/production/spartaSpringBasic/younggyu/Car.class
new file mode 100644
index 0000000..a5a08dc
Binary files /dev/null and b/src/out/production/spartaSpringBasic/younggyu/Car.class differ
diff --git a/src/out/production/spartaSpringBasic/younggyu/Case1.class b/src/out/production/spartaSpringBasic/younggyu/Case1.class
new file mode 100644
index 0000000..4ed0022
Binary files /dev/null and b/src/out/production/spartaSpringBasic/younggyu/Case1.class differ
diff --git a/src/spartaSpringBasic.iml b/src/spartaSpringBasic.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/src/spartaSpringBasic.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/src/Main.java b/src/src/Main.java
index 9983b50..2cb1b24 100644
--- a/src/src/Main.java
+++ b/src/src/Main.java
@@ -1,10 +1,28 @@
-import base.Case1;
+import younggyu.Car;
+import younggyu.Case1;
+
+import java.util.ArrayList;
+import java.util.List;
public class Main {
public static void main(String[] args) {
- Case1 case1 = new Case1();
+ List carList = new ArrayList<>();
+
+
+ Car blueCar = new Car("파란 차");
+ Car blackCar = new Car("검정색 차");
+
+ for(Integer i = 0; i < 10; i++){
+ blueCar.가속하기();
+ }
+
+
+ carList.add(blueCar);
+ carList.add(blackCar);
- case1.gameStart(3);
+ for(Car car : carList){
+ System.out.println(car.무슨색차니() +"색 차의 현재 속력은 : " + car.현재속력은());
+ }
}
}
\ No newline at end of file
diff --git a/src/src/younggyu/Car.java b/src/src/younggyu/Car.java
new file mode 100644
index 0000000..77913a3
--- /dev/null
+++ b/src/src/younggyu/Car.java
@@ -0,0 +1,45 @@
+package younggyu;
+
+public class Car {
+ static Integer WHEEL_COUNT = 4;
+ private String color;
+ private String brand;
+ private Integer maxSpeed;
+ private Integer currentSpeed;
+ private String fuel;
+
+ public Car(String inputColor){
+ this.color = inputColor;
+ this.brand = "테슬라";
+ this.maxSpeed = 250;
+ this.fuel = "전기";
+ currentSpeed = 0;
+ }
+
+ public Car(String inputColor, String inputBrand, Integer maxSpeed, String fuel){
+ this.color = inputColor;
+ this.brand = inputBrand;
+ this.maxSpeed = maxSpeed;
+ this.fuel = fuel;
+ currentSpeed = 0;
+ }
+
+ public String 무슨색차니(){
+ return this.color;
+ }
+
+ public String 무슨브랜드와무슨색을가지고있니(){
+ return "브랜드는 " + this.brand + " 색은 " + this.color;
+ }
+
+ public void 가속하기() {
+ this.currentSpeed += 1;
+ }
+ public void 감속하기() {
+ this.currentSpeed -= 1;
+ }
+ public Integer 현재속력은(){
+ return this.currentSpeed;
+ }
+
+}
diff --git a/src/src/younggyu/Computer.java b/src/src/younggyu/Computer.java
new file mode 100644
index 0000000..d6481bc
--- /dev/null
+++ b/src/src/younggyu/Computer.java
@@ -0,0 +1,5 @@
+package younggyu;
+
+public class Computer {
+
+}