diff --git a/Modul0Introduction/HelloJava/.idea/misc.xml b/Modul0Introduction/HelloJava/.idea/misc.xml
new file mode 100644
index 0000000..72cfda0
--- /dev/null
+++ b/Modul0Introduction/HelloJava/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul0Introduction/HelloJava/.idea/modules.xml b/Modul0Introduction/HelloJava/.idea/modules.xml
new file mode 100644
index 0000000..ca86d53
--- /dev/null
+++ b/Modul0Introduction/HelloJava/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul0Introduction/HelloJava/.idea/workspace.xml b/Modul0Introduction/HelloJava/.idea/workspace.xml
new file mode 100644
index 0000000..1ddfe7c
--- /dev/null
+++ b/Modul0Introduction/HelloJava/.idea/workspace.xml
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1563175307321
+
+
+ 1563175307321
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul0Introduction/HelloJava/HelloJava.iml b/Modul0Introduction/HelloJava/HelloJava.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/Modul0Introduction/HelloJava/HelloJava.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul0Introduction/HelloJava/out/production/HelloJava/Main.class b/Modul0Introduction/HelloJava/out/production/HelloJava/Main.class
new file mode 100644
index 0000000..1c9e3d4
Binary files /dev/null and b/Modul0Introduction/HelloJava/out/production/HelloJava/Main.class differ
diff --git a/Modul0Introduction/HelloJava/src/Main.java b/Modul0Introduction/HelloJava/src/Main.java
new file mode 100644
index 0000000..5a5f303
--- /dev/null
+++ b/Modul0Introduction/HelloJava/src/Main.java
@@ -0,0 +1,5 @@
+public class Main {
+ public static void main(String[] args) {
+ System.out.println("Hello, World!");
+ }
+}
diff --git a/Modul1Basic/.DS_Store b/Modul1Basic/.DS_Store
new file mode 100644
index 0000000..5008ddf
Binary files /dev/null and b/Modul1Basic/.DS_Store differ
diff --git a/Modul1Basic/Array/.idea/misc.xml b/Modul1Basic/Array/.idea/misc.xml
new file mode 100644
index 0000000..72cfda0
--- /dev/null
+++ b/Modul1Basic/Array/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul1Basic/Array/.idea/modules.xml b/Modul1Basic/Array/.idea/modules.xml
new file mode 100644
index 0000000..aec7cf2
--- /dev/null
+++ b/Modul1Basic/Array/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul1Basic/Array/.idea/workspace.xml b/Modul1Basic/Array/.idea/workspace.xml
new file mode 100644
index 0000000..f56c81d
--- /dev/null
+++ b/Modul1Basic/Array/.idea/workspace.xml
@@ -0,0 +1,259 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1563345808975
+
+
+ 1563345808975
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul1Basic/Array/Array.iml b/Modul1Basic/Array/Array.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/Modul1Basic/Array/Array.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul1Basic/Array/out/production/Array/com/dicoding/javafundamental/array/IndexOutOfBound.class b/Modul1Basic/Array/out/production/Array/com/dicoding/javafundamental/array/IndexOutOfBound.class
new file mode 100644
index 0000000..2259905
Binary files /dev/null and b/Modul1Basic/Array/out/production/Array/com/dicoding/javafundamental/array/IndexOutOfBound.class differ
diff --git a/Modul1Basic/Array/out/production/Array/com/dicoding/javafundamental/array/InisiasiArray.class b/Modul1Basic/Array/out/production/Array/com/dicoding/javafundamental/array/InisiasiArray.class
new file mode 100644
index 0000000..566b169
Binary files /dev/null and b/Modul1Basic/Array/out/production/Array/com/dicoding/javafundamental/array/InisiasiArray.class differ
diff --git a/Modul1Basic/Array/out/production/Array/com/dicoding/javafundamental/array/LoopingArray.class b/Modul1Basic/Array/out/production/Array/com/dicoding/javafundamental/array/LoopingArray.class
new file mode 100644
index 0000000..6a57afd
Binary files /dev/null and b/Modul1Basic/Array/out/production/Array/com/dicoding/javafundamental/array/LoopingArray.class differ
diff --git a/Modul1Basic/Array/out/production/Array/com/dicoding/javafundamental/array/MultiDimensionalArray.class b/Modul1Basic/Array/out/production/Array/com/dicoding/javafundamental/array/MultiDimensionalArray.class
new file mode 100644
index 0000000..bc32167
Binary files /dev/null and b/Modul1Basic/Array/out/production/Array/com/dicoding/javafundamental/array/MultiDimensionalArray.class differ
diff --git a/Modul1Basic/Array/src/com/dicoding/javafundamental/array/IndexOutOfBound.java b/Modul1Basic/Array/src/com/dicoding/javafundamental/array/IndexOutOfBound.java
new file mode 100644
index 0000000..50ff184
--- /dev/null
+++ b/Modul1Basic/Array/src/com/dicoding/javafundamental/array/IndexOutOfBound.java
@@ -0,0 +1,13 @@
+package com.dicoding.javafundamental.array;
+
+public class IndexOutOfBound {
+ public static void main(String[] args) {
+ int[] arrA = {1, 2, 3, 4};
+ System.out.println(arrA[0]);
+ System.out.println(arrA[1]);
+ System.out.println(arrA[2]);
+
+ // Akses indeks ke 4
+ System.out.println(arrA[4]);
+ }
+}
diff --git a/Modul1Basic/Array/src/com/dicoding/javafundamental/array/InisiasiArray.java b/Modul1Basic/Array/src/com/dicoding/javafundamental/array/InisiasiArray.java
new file mode 100644
index 0000000..b6ef054
--- /dev/null
+++ b/Modul1Basic/Array/src/com/dicoding/javafundamental/array/InisiasiArray.java
@@ -0,0 +1,14 @@
+package com.dicoding.javafundamental.array;
+
+public class InisiasiArray {
+ public static void main(String[] args) {
+ int[] arrInt = {1, 2, 3, 4, 5, 6};
+
+ System.out.println(arrInt[0]);
+ System.out.println(arrInt[1]);
+ System.out.println(arrInt[2]);
+ System.out.println(arrInt[3]);
+ System.out.println(arrInt[4]);
+ System.out.println(arrInt[5]);
+ }
+}
diff --git a/Modul1Basic/Array/src/com/dicoding/javafundamental/array/LoopingArray.java b/Modul1Basic/Array/src/com/dicoding/javafundamental/array/LoopingArray.java
new file mode 100644
index 0000000..af93f90
--- /dev/null
+++ b/Modul1Basic/Array/src/com/dicoding/javafundamental/array/LoopingArray.java
@@ -0,0 +1,13 @@
+package com.dicoding.javafundamental.array;
+
+public class LoopingArray {
+ public static void main(String[] args) {
+ int[] arrInt = new int[1000000];
+
+ // Inisiasi dan menampilkan arrInt dari elemen ke 1 sampai 1000000
+ for (int x = 0; x < arrInt.length; x++) {
+ arrInt[x] = x + 1;
+ System.out.println(arrInt[x]);
+ }
+ }
+}
diff --git a/Modul1Basic/Array/src/com/dicoding/javafundamental/array/MultiDimensionalArray.java b/Modul1Basic/Array/src/com/dicoding/javafundamental/array/MultiDimensionalArray.java
new file mode 100644
index 0000000..90b6ece
--- /dev/null
+++ b/Modul1Basic/Array/src/com/dicoding/javafundamental/array/MultiDimensionalArray.java
@@ -0,0 +1,23 @@
+package com.dicoding.javafundamental.array;
+
+public class MultiDimensionalArray {
+ public static void main(String[] args) {
+ char[][] arrChar = new char[2][];
+ arrChar[0] = new char[2];
+ arrChar[1] = new char[3];
+ // Dimensi 1 yang indeksnya 0 memiliki panjang elemen 2
+ arrChar[0][0] = 'A';
+ arrChar[0][1] = 'B';
+ // Dimensi 1 yang indeksnya 1 memiliki panjang elemen 3
+ arrChar[1][0] = 'C';
+ arrChar[1][1] = 'D';
+ arrChar[1][2] = 'E';
+ // Tampilkan semua data dari dimensi 1 yang memiliki indeks 0
+ System.out.println("Dimensi 1 dengan indeks 0 dan Dimensi 2 dengan indeks 0 : " + arrChar[0][0]);
+ System.out.println("Dimensi 1 dengan indeks 0 dan Dimensi 2 dengan indeks 1 : " + arrChar[0][1]);
+ // Tampilkan semua data dari dimensi 1 yang memiliki indeks 1
+ System.out.println("Dimensi 1 dengan indeks 1 dan Dimensi 2 dengan indeks 0 : " + arrChar[1][0]);
+ System.out.println("Dimensi 1 dengan indeks 1 dan Dimensi 2 dengan indeks 1 : " + arrChar[1][1]);
+ System.out.println("Dimensi 1 dengan indeks 1 dan Dimensi 2 dengan indeks 2 : " + arrChar[1][2]);
+ }
+}
diff --git a/Modul1Basic/InputOuput/.idea/misc.xml b/Modul1Basic/InputOuput/.idea/misc.xml
new file mode 100644
index 0000000..72cfda0
--- /dev/null
+++ b/Modul1Basic/InputOuput/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul1Basic/InputOuput/.idea/modules.xml b/Modul1Basic/InputOuput/.idea/modules.xml
new file mode 100644
index 0000000..fece5be
--- /dev/null
+++ b/Modul1Basic/InputOuput/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul1Basic/InputOuput/.idea/workspace.xml b/Modul1Basic/InputOuput/.idea/workspace.xml
new file mode 100644
index 0000000..f72e156
--- /dev/null
+++ b/Modul1Basic/InputOuput/.idea/workspace.xml
@@ -0,0 +1,232 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1563278784735
+
+
+ 1563278784735
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul1Basic/InputOuput/InputOuput.iml b/Modul1Basic/InputOuput/InputOuput.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/Modul1Basic/InputOuput/InputOuput.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul1Basic/InputOuput/out/production/InputOuput/com/dicoding/javafundamental/inputouput/InputOutputFunction.class b/Modul1Basic/InputOuput/out/production/InputOuput/com/dicoding/javafundamental/inputouput/InputOutputFunction.class
new file mode 100644
index 0000000..68e0397
Binary files /dev/null and b/Modul1Basic/InputOuput/out/production/InputOuput/com/dicoding/javafundamental/inputouput/InputOutputFunction.class differ
diff --git a/Modul1Basic/InputOuput/out/production/InputOuput/com/dicoding/javafundamental/inputouput/UserBufferedReader.class b/Modul1Basic/InputOuput/out/production/InputOuput/com/dicoding/javafundamental/inputouput/UserBufferedReader.class
new file mode 100644
index 0000000..e96215a
Binary files /dev/null and b/Modul1Basic/InputOuput/out/production/InputOuput/com/dicoding/javafundamental/inputouput/UserBufferedReader.class differ
diff --git a/Modul1Basic/InputOuput/out/production/InputOuput/com/dicoding/javafundamental/inputouput/UserOutput.class b/Modul1Basic/InputOuput/out/production/InputOuput/com/dicoding/javafundamental/inputouput/UserOutput.class
new file mode 100644
index 0000000..b574667
Binary files /dev/null and b/Modul1Basic/InputOuput/out/production/InputOuput/com/dicoding/javafundamental/inputouput/UserOutput.class differ
diff --git a/Modul1Basic/InputOuput/src/com/dicoding/javafundamental/inputouput/InputOutputFunction.java b/Modul1Basic/InputOuput/src/com/dicoding/javafundamental/inputouput/InputOutputFunction.java
new file mode 100644
index 0000000..6a93893
--- /dev/null
+++ b/Modul1Basic/InputOuput/src/com/dicoding/javafundamental/inputouput/InputOutputFunction.java
@@ -0,0 +1,17 @@
+package com.dicoding.javafundamental.inputouput;
+
+import java.util.Scanner;
+
+public class InputOutputFunction {
+
+ public static void main(String[] args) {
+ Scanner scanner = new Scanner(System.in);
+ System.out.println("Program penjumalahan sangat sederhana");
+ System.out.print("Masukan Angka pertama : ");
+ int value = scanner.nextInt();
+ System.out.print("Masukan Angka kedua : ");
+ int anotherValue = scanner.nextInt();
+ int result = value + anotherValue;
+ System.out.println("Hasilnya adalah : " + result);
+ }
+}
diff --git a/Modul1Basic/InputOuput/src/com/dicoding/javafundamental/inputouput/UserBufferedReader.java b/Modul1Basic/InputOuput/src/com/dicoding/javafundamental/inputouput/UserBufferedReader.java
new file mode 100644
index 0000000..fe77395
--- /dev/null
+++ b/Modul1Basic/InputOuput/src/com/dicoding/javafundamental/inputouput/UserBufferedReader.java
@@ -0,0 +1,28 @@
+package com.dicoding.javafundamental.inputouput;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStreamReader;
+
+public class UserBufferedReader {
+
+ public static void main(String[] args) {
+
+ InputStreamReader streamReader = new InputStreamReader(System.in);
+ BufferedReader bufferedReader = new BufferedReader(isr);
+ System.out.println("Program penjumlahan sangat sederhana");
+ int value = 0;
+ int anotherValue = 0;
+ try {
+ System.out.print("Masukan Angka pertama : ");
+ value = Integer.parseInt(bufferedReader.readLine());
+ System.out.print("Masukan Angka kedua : ");
+ anotherValue = Integer.parseInt(bufferedReader.readLine());
+
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ int result = value + anotherValue;
+ System.out.println("Hasilnya adalah : " + result);
+ }
+}
diff --git a/Modul1Basic/InputOuput/src/com/dicoding/javafundamental/inputouput/UserOutput.java b/Modul1Basic/InputOuput/src/com/dicoding/javafundamental/inputouput/UserOutput.java
new file mode 100644
index 0000000..97e19cc
--- /dev/null
+++ b/Modul1Basic/InputOuput/src/com/dicoding/javafundamental/inputouput/UserOutput.java
@@ -0,0 +1,11 @@
+package com.dicoding.javafundamental.inputouput;
+
+public class UserOutput {
+
+ public static void main(String[] args) {
+ System.out.println("Dicetak pakai println()");
+ System.out.println("Ini juga dicetak pakai println()");
+ System.out.print("Ini dicetak dengan print()");
+ System.out.print(" dan ini juga dicetak dengan print()");
+ }
+}
diff --git a/Modul1Basic/Operator/.idea/misc.xml b/Modul1Basic/Operator/.idea/misc.xml
new file mode 100644
index 0000000..72cfda0
--- /dev/null
+++ b/Modul1Basic/Operator/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul1Basic/Operator/.idea/modules.xml b/Modul1Basic/Operator/.idea/modules.xml
new file mode 100644
index 0000000..98b7cde
--- /dev/null
+++ b/Modul1Basic/Operator/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul1Basic/Operator/.idea/uiDesigner.xml b/Modul1Basic/Operator/.idea/uiDesigner.xml
new file mode 100644
index 0000000..e96534f
--- /dev/null
+++ b/Modul1Basic/Operator/.idea/uiDesigner.xml
@@ -0,0 +1,124 @@
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul1Basic/Operator/.idea/workspace.xml b/Modul1Basic/Operator/.idea/workspace.xml
new file mode 100644
index 0000000..dca5536
--- /dev/null
+++ b/Modul1Basic/Operator/.idea/workspace.xml
@@ -0,0 +1,292 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1563280711799
+
+
+ 1563280711799
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul1Basic/Operator/Operator.iml b/Modul1Basic/Operator/Operator.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/Modul1Basic/Operator/Operator.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul1Basic/Operator/out/production/Operator/META-INF/Operator.kotlin_module b/Modul1Basic/Operator/out/production/Operator/META-INF/Operator.kotlin_module
new file mode 100644
index 0000000..8fb6019
Binary files /dev/null and b/Modul1Basic/Operator/out/production/Operator/META-INF/Operator.kotlin_module differ
diff --git a/Modul1Basic/Operator/out/production/Operator/com/dicoding/javafundamental/operator/OperatorAritmatika.class b/Modul1Basic/Operator/out/production/Operator/com/dicoding/javafundamental/operator/OperatorAritmatika.class
new file mode 100644
index 0000000..d821911
Binary files /dev/null and b/Modul1Basic/Operator/out/production/Operator/com/dicoding/javafundamental/operator/OperatorAritmatika.class differ
diff --git a/Modul1Basic/Operator/out/production/Operator/com/dicoding/javafundamental/operator/OperatorAssignment.class b/Modul1Basic/Operator/out/production/Operator/com/dicoding/javafundamental/operator/OperatorAssignment.class
new file mode 100644
index 0000000..eac1df7
Binary files /dev/null and b/Modul1Basic/Operator/out/production/Operator/com/dicoding/javafundamental/operator/OperatorAssignment.class differ
diff --git a/Modul1Basic/Operator/out/production/Operator/com/dicoding/javafundamental/operator/OperatorConditional.class b/Modul1Basic/Operator/out/production/Operator/com/dicoding/javafundamental/operator/OperatorConditional.class
new file mode 100644
index 0000000..1cd096f
Binary files /dev/null and b/Modul1Basic/Operator/out/production/Operator/com/dicoding/javafundamental/operator/OperatorConditional.class differ
diff --git a/Modul1Basic/Operator/out/production/Operator/com/dicoding/javafundamental/operator/OperatorEquality.class b/Modul1Basic/Operator/out/production/Operator/com/dicoding/javafundamental/operator/OperatorEquality.class
new file mode 100644
index 0000000..2980ed0
Binary files /dev/null and b/Modul1Basic/Operator/out/production/Operator/com/dicoding/javafundamental/operator/OperatorEquality.class differ
diff --git a/Modul1Basic/Operator/out/production/Operator/com/dicoding/javafundamental/operator/OperatorUnary.class b/Modul1Basic/Operator/out/production/Operator/com/dicoding/javafundamental/operator/OperatorUnary.class
new file mode 100644
index 0000000..c380f30
Binary files /dev/null and b/Modul1Basic/Operator/out/production/Operator/com/dicoding/javafundamental/operator/OperatorUnary.class differ
diff --git a/Modul1Basic/Operator/src/com/dicoding/javafundamental/operator/OperatorAritmatika.java b/Modul1Basic/Operator/src/com/dicoding/javafundamental/operator/OperatorAritmatika.java
new file mode 100644
index 0000000..da7237f
--- /dev/null
+++ b/Modul1Basic/Operator/src/com/dicoding/javafundamental/operator/OperatorAritmatika.java
@@ -0,0 +1,34 @@
+package com.dicoding.javafundamental.operator;
+
+public class OperatorAritmatika {
+
+ public static void main(String[] args) {
+ System.out.println("Operasi Penjumlahan");
+ int hasilPenjumlahan = 5 + 1;
+ System.out.println("Hasil 5 + 1 = " + hasilPenjumlahan);
+ System.out.println();
+
+ System.out.println("Operasi Pengurangan");
+ int hasilPengurangan = 4 - 1;
+ System.out.println("Hasil 4 - 1 = " + hasilPengurangan);
+ System.out.println();
+
+ System.out.println("Operasi Pengalian");
+ int hasilPengalian = 5 * 5;
+ System.out.println("Hasil 5 * 5 = " + hasilPengalian);
+ System.out.println();
+
+ System.out.println("Operasi Pembagian");
+ int hasilPembagian = 20 / 2;
+ System.out.println("Hasil 20 / 2 = " + hasilPembagian);
+ System.out.println();
+
+ System.out.println("Operasi Habis bagi");
+ int hasilSisa = 8 % 2;
+ System.out.println("Hasil 8 % 2 = " + hasilSisa);
+ System.out.println();
+ int hasilSisa2 = 9 % 2;
+ System.out.println("Hasil 9 % 2 = " + hasilSisa2);
+ System.out.println();
+ }
+}
diff --git a/Modul1Basic/Operator/src/com/dicoding/javafundamental/operator/OperatorAssignment.java b/Modul1Basic/Operator/src/com/dicoding/javafundamental/operator/OperatorAssignment.java
new file mode 100644
index 0000000..1129276
--- /dev/null
+++ b/Modul1Basic/Operator/src/com/dicoding/javafundamental/operator/OperatorAssignment.java
@@ -0,0 +1,13 @@
+package com.dicoding.javafundamental.operator;
+
+public class OperatorAssignment {
+
+ public static void main(String[] args) {
+
+ int value = 2;
+ int anotherValue = 19;
+ System.out.println("Data pada value adalah ->> " + value);
+ System.out.println("Data pada anotherValue adalah ->> " + anotherValue);
+
+ }
+}
diff --git a/Modul1Basic/Operator/src/com/dicoding/javafundamental/operator/OperatorConditional.java b/Modul1Basic/Operator/src/com/dicoding/javafundamental/operator/OperatorConditional.java
new file mode 100644
index 0000000..c5d9de9
--- /dev/null
+++ b/Modul1Basic/Operator/src/com/dicoding/javafundamental/operator/OperatorConditional.java
@@ -0,0 +1,25 @@
+package com.dicoding.javafundamental.operator;
+
+public class OperatorConditional {
+
+ public static void main(String[] args) {
+ int value = 4;
+ int anotherValue = 5;
+
+ System.out.println("Conditional AND");
+ boolean result = value == 3 && anotherValue == 5;
+ boolean anotherResult = value != 3 && anotherValue == 5;
+
+ System.out.println("Hasil Operator AND pada syarat value == 3 dan anotherValue == 5 adalah " + result);
+ System.out.println("Hasil Operator AND pada syarat value != 3 dan anotherValue == 5 adalah " + anotherResult);
+ System.out.println();
+ System.out.println("Conditional OR");
+
+ result = value == 3 || anotherValue == 5;
+ anotherResult = value != 3 || anotherValue == 5;
+
+ System.out.println("Hasil Operator OR pada syarat value == 3 dan anotherValue == 5 adalah " + result);
+ System.out.println("Hasil Operator OR pada syarat value != 3 dan anotherValue == 5 adalah " + anotherResult);
+ System.out.println();
+ }
+}
diff --git a/Modul1Basic/Operator/src/com/dicoding/javafundamental/operator/OperatorEquality.java b/Modul1Basic/Operator/src/com/dicoding/javafundamental/operator/OperatorEquality.java
new file mode 100644
index 0000000..97014cb
--- /dev/null
+++ b/Modul1Basic/Operator/src/com/dicoding/javafundamental/operator/OperatorEquality.java
@@ -0,0 +1,41 @@
+package com.dicoding.javafundamental.operator;
+
+public class OperatorEquality {
+
+ public static void main(String[] args) {
+
+ int value = 5;
+ int anotherValue = 4;
+ boolean result;
+ result = value == anotherValue;
+
+ System.out.println("Hasil 'value == anotherValue' adalah " + result);
+ System.out.println();
+
+ System.out.println("Tidak sama dengan..");
+ result = value != anotherValue;
+ System.out.println("Hasil 'value != anotherValue' adalah " + result);
+ System.out.println();
+
+ System.out.println("Lebih besar dari..");
+ result = value > anotherValue;
+ System.out.println("Hasil 'value > anotherValue' adalah " + result);
+ System.out.println();
+
+ System.out.println("Sama atau lebih besar dari..");
+ result = value >= anotherValue;
+ System.out.println("Hasil 'value >= anotherValue' adalah " + result);
+ System.out.println();
+
+ System.out.println("Kurang dari..");
+ result = value < anotherValue;
+ System.out.println("Hasil 'value < anotherValue' adalah " + result);
+ System.out.println();
+
+ System.out.println("Sama atau kurang dari dengan..");
+ result = value <= anotherValue;
+ System.out.println("Hasil 'value <= anotherValue' adalah " + result);
+ System.out.println();
+
+ }
+}
diff --git a/Modul1Basic/Operator/src/com/dicoding/javafundamental/operator/OperatorUnary.java b/Modul1Basic/Operator/src/com/dicoding/javafundamental/operator/OperatorUnary.java
new file mode 100644
index 0000000..964ffab
--- /dev/null
+++ b/Modul1Basic/Operator/src/com/dicoding/javafundamental/operator/OperatorUnary.java
@@ -0,0 +1,35 @@
+package com.dicoding.javafundamental.operator;
+
+public class OperatorUnary {
+
+ public static void main(String[] args) {
+ System.out.println("Operator Unary Plus");
+ int nilaiAwal = 5;
+ int hasil = +nilaiAwal;
+ System.out.println("Hasil +5 = " + hasil);
+ System.out.println();
+
+ System.out.println("Operator Unary Minus");
+ int nilaiAwal2 = 5;
+ nilaiAwal2 = -nilaiAwal2;
+ System.out.println("Hasil -5 = " + nilaiAwal2);
+ System.out.println();
+
+ System.out.println("Operator peningkatan nilai sebesar 1 point");
+ int nilaiAwal3 = 5;
+ nilaiAwal3++;
+ System.out.println("Hasil 5++ = " + nilaiAwal3);
+ System.out.println();
+
+ System.out.println("Operator pengurangan nilai sebesar 1 point");
+ int nilaiAwal4 = 5;
+ nilaiAwal4--;
+ System.out.println("Hasil 5-- = " + nilaiAwal4);
+ System.out.println();
+
+ System.out.println("Operator komplemen logika");
+ boolean sukses = false; //Nilai sukses adalah false
+ System.out.println("Hasil !false =" + !sukses);
+ System.out.println();
+ }
+}
diff --git a/Modul1Basic/Percabangan/.idea/misc.xml b/Modul1Basic/Percabangan/.idea/misc.xml
new file mode 100644
index 0000000..72cfda0
--- /dev/null
+++ b/Modul1Basic/Percabangan/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul1Basic/Percabangan/.idea/modules.xml b/Modul1Basic/Percabangan/.idea/modules.xml
new file mode 100644
index 0000000..3692293
--- /dev/null
+++ b/Modul1Basic/Percabangan/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul1Basic/Percabangan/.idea/workspace.xml b/Modul1Basic/Percabangan/.idea/workspace.xml
new file mode 100644
index 0000000..467f241
--- /dev/null
+++ b/Modul1Basic/Percabangan/.idea/workspace.xml
@@ -0,0 +1,289 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1563332807574
+
+
+ 1563332807574
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul1Basic/Percabangan/Percabangan.iml b/Modul1Basic/Percabangan/Percabangan.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/Modul1Basic/Percabangan/Percabangan.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul1Basic/Percabangan/out/production/Percabangan/com/dicoding/javafundamental/percabangan/IfThen.class b/Modul1Basic/Percabangan/out/production/Percabangan/com/dicoding/javafundamental/percabangan/IfThen.class
new file mode 100644
index 0000000..21fa303
Binary files /dev/null and b/Modul1Basic/Percabangan/out/production/Percabangan/com/dicoding/javafundamental/percabangan/IfThen.class differ
diff --git a/Modul1Basic/Percabangan/out/production/Percabangan/com/dicoding/javafundamental/percabangan/IfThenElse.class b/Modul1Basic/Percabangan/out/production/Percabangan/com/dicoding/javafundamental/percabangan/IfThenElse.class
new file mode 100644
index 0000000..fabe12f
Binary files /dev/null and b/Modul1Basic/Percabangan/out/production/Percabangan/com/dicoding/javafundamental/percabangan/IfThenElse.class differ
diff --git a/Modul1Basic/Percabangan/out/production/Percabangan/com/dicoding/javafundamental/percabangan/IfThenElseIfThenElse.class b/Modul1Basic/Percabangan/out/production/Percabangan/com/dicoding/javafundamental/percabangan/IfThenElseIfThenElse.class
new file mode 100644
index 0000000..65a55b1
Binary files /dev/null and b/Modul1Basic/Percabangan/out/production/Percabangan/com/dicoding/javafundamental/percabangan/IfThenElseIfThenElse.class differ
diff --git a/Modul1Basic/Percabangan/out/production/Percabangan/com/dicoding/javafundamental/percabangan/Switch.class b/Modul1Basic/Percabangan/out/production/Percabangan/com/dicoding/javafundamental/percabangan/Switch.class
new file mode 100644
index 0000000..4f81d8d
Binary files /dev/null and b/Modul1Basic/Percabangan/out/production/Percabangan/com/dicoding/javafundamental/percabangan/Switch.class differ
diff --git a/Modul1Basic/Percabangan/out/production/Percabangan/com/dicoding/javafundamental/percabangan/SwitchWithoutBreak.class b/Modul1Basic/Percabangan/out/production/Percabangan/com/dicoding/javafundamental/percabangan/SwitchWithoutBreak.class
new file mode 100644
index 0000000..423f49a
Binary files /dev/null and b/Modul1Basic/Percabangan/out/production/Percabangan/com/dicoding/javafundamental/percabangan/SwitchWithoutBreak.class differ
diff --git a/Modul1Basic/Percabangan/src/com/dicoding/javafundamental/percabangan/IfThen.java b/Modul1Basic/Percabangan/src/com/dicoding/javafundamental/percabangan/IfThen.java
new file mode 100644
index 0000000..8eac00d
--- /dev/null
+++ b/Modul1Basic/Percabangan/src/com/dicoding/javafundamental/percabangan/IfThen.java
@@ -0,0 +1,11 @@
+package com.dicoding.javafundamental.percabangan;
+
+public class IfThen {
+ public static void main(String[] args) {
+ boolean isOn = true;
+
+ if (isOn) {
+ System.out.println("Menyalakan lampu");
+ }
+ }
+}
diff --git a/Modul1Basic/Percabangan/src/com/dicoding/javafundamental/percabangan/IfThenElse.java b/Modul1Basic/Percabangan/src/com/dicoding/javafundamental/percabangan/IfThenElse.java
new file mode 100644
index 0000000..16b9116
--- /dev/null
+++ b/Modul1Basic/Percabangan/src/com/dicoding/javafundamental/percabangan/IfThenElse.java
@@ -0,0 +1,13 @@
+package com.dicoding.javafundamental.percabangan;
+
+public class IfThenElse {
+ public static void main(String[] args) {
+ boolean isOn = false;
+
+ if (isOn) {
+ System.out.println("Menyalakan lampu");
+ } else {
+ System.out.println("Kondisi tidak terpenuhi...");
+ }
+ }
+}
diff --git a/Modul1Basic/Percabangan/src/com/dicoding/javafundamental/percabangan/IfThenElseIfThenElse.java b/Modul1Basic/Percabangan/src/com/dicoding/javafundamental/percabangan/IfThenElseIfThenElse.java
new file mode 100644
index 0000000..7a20a4e
--- /dev/null
+++ b/Modul1Basic/Percabangan/src/com/dicoding/javafundamental/percabangan/IfThenElseIfThenElse.java
@@ -0,0 +1,23 @@
+package com.dicoding.javafundamental.percabangan;
+
+public class IfThenElseIfThenElse {
+ public static void main(String[] args) {
+ int nilaiUjian = 80;
+ char indeksPrestasi;
+
+ if (nilaiUjian >= 90) {
+ indeksPrestasi = 'A';
+ } else if (nilaiUjian >= 80) {
+ indeksPrestasi = 'B';
+ } else if (nilaiUjian >= 70) {
+ indeksPrestasi = 'C';
+ } else if (nilaiUjian >= 60) {
+ indeksPrestasi = 'D';
+ } else if (nilaiUjian >= 50) {
+ indeksPrestasi = 'E';
+ } else {
+ indeksPrestasi = 'F';
+ }
+ System.out.println("Nilai ujian akhir anda adalah " + indeksPrestasi);
+ }
+}
diff --git a/Modul1Basic/Percabangan/src/com/dicoding/javafundamental/percabangan/Switch.java b/Modul1Basic/Percabangan/src/com/dicoding/javafundamental/percabangan/Switch.java
new file mode 100644
index 0000000..096513e
--- /dev/null
+++ b/Modul1Basic/Percabangan/src/com/dicoding/javafundamental/percabangan/Switch.java
@@ -0,0 +1,38 @@
+package com.dicoding.javafundamental.percabangan;
+
+public class Switch {
+ public static void main(String[] args) {
+ int input = 6;
+ switch (input) {
+ case 1:
+ System.out.println("1");
+ break;
+ case 2:
+ System.out.println("2");
+ break;
+ case 3:
+ System.out.println("3");
+ break;
+ case 4:
+ System.out.println("4");
+ break;
+ case 5:
+ System.out.println("5");
+ break;
+ case 6:
+ System.out.println("6");
+ break;
+ case 7:
+ System.out.println("7");
+ break;
+ case 8:
+ System.out.println("8");
+ break;
+ case 9:
+ System.out.println("9");
+ break;
+ default:
+ break;
+ }
+ }
+}
diff --git a/Modul1Basic/Percabangan/src/com/dicoding/javafundamental/percabangan/SwitchWithoutBreak.java b/Modul1Basic/Percabangan/src/com/dicoding/javafundamental/percabangan/SwitchWithoutBreak.java
new file mode 100644
index 0000000..ebed568
--- /dev/null
+++ b/Modul1Basic/Percabangan/src/com/dicoding/javafundamental/percabangan/SwitchWithoutBreak.java
@@ -0,0 +1,29 @@
+package com.dicoding.javafundamental.percabangan;
+
+public class SwitchWithoutBreak {
+ public static void main(String[] args) {
+ char input = 'C';
+ int output = 0;
+ switch (input) {
+ case 'A':
+ output++;
+ case 'B':
+ output++;
+ case 'C':
+ // Program akan menjalankan kode di dalam case ini
+ output++; // output = 1
+
+ // Karena di akhir case C tidak ada break, maka program akan menjalankan case selanjutnya
+ case 'D':
+ // Kode ini akan dijalankan oleh program
+ output++; // output = 2
+ case 'E':
+ // Kode ini akan dijalankan oleh program
+ output++; // output = 3
+ default:
+ // Case default juga akan dijalankan
+ output++; // output = 4
+ }
+ System.out.println("Nilai akhirnya adalah " + output);
+ }
+}
\ No newline at end of file
diff --git a/Modul1Basic/Perulangan/.idea/misc.xml b/Modul1Basic/Perulangan/.idea/misc.xml
new file mode 100644
index 0000000..72cfda0
--- /dev/null
+++ b/Modul1Basic/Perulangan/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul1Basic/Perulangan/.idea/modules.xml b/Modul1Basic/Perulangan/.idea/modules.xml
new file mode 100644
index 0000000..3ce9fe9
--- /dev/null
+++ b/Modul1Basic/Perulangan/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul1Basic/Perulangan/.idea/workspace.xml b/Modul1Basic/Perulangan/.idea/workspace.xml
new file mode 100644
index 0000000..53ce19c
--- /dev/null
+++ b/Modul1Basic/Perulangan/.idea/workspace.xml
@@ -0,0 +1,257 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1563338715275
+
+
+ 1563338715275
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul1Basic/Perulangan/Perulangan.iml b/Modul1Basic/Perulangan/Perulangan.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/Modul1Basic/Perulangan/Perulangan.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul1Basic/Perulangan/out/production/Perulangan/com/dicoding/javafundamental/perulangan/DoWhile.class b/Modul1Basic/Perulangan/out/production/Perulangan/com/dicoding/javafundamental/perulangan/DoWhile.class
new file mode 100644
index 0000000..ddd3e07
Binary files /dev/null and b/Modul1Basic/Perulangan/out/production/Perulangan/com/dicoding/javafundamental/perulangan/DoWhile.class differ
diff --git a/Modul1Basic/Perulangan/out/production/Perulangan/com/dicoding/javafundamental/perulangan/For.class b/Modul1Basic/Perulangan/out/production/Perulangan/com/dicoding/javafundamental/perulangan/For.class
new file mode 100644
index 0000000..2cfd3b4
Binary files /dev/null and b/Modul1Basic/Perulangan/out/production/Perulangan/com/dicoding/javafundamental/perulangan/For.class differ
diff --git a/Modul1Basic/Perulangan/out/production/Perulangan/com/dicoding/javafundamental/perulangan/ForBersarang.class b/Modul1Basic/Perulangan/out/production/Perulangan/com/dicoding/javafundamental/perulangan/ForBersarang.class
new file mode 100644
index 0000000..cfb1fcb
Binary files /dev/null and b/Modul1Basic/Perulangan/out/production/Perulangan/com/dicoding/javafundamental/perulangan/ForBersarang.class differ
diff --git a/Modul1Basic/Perulangan/out/production/Perulangan/com/dicoding/javafundamental/perulangan/While.class b/Modul1Basic/Perulangan/out/production/Perulangan/com/dicoding/javafundamental/perulangan/While.class
new file mode 100644
index 0000000..74ba49b
Binary files /dev/null and b/Modul1Basic/Perulangan/out/production/Perulangan/com/dicoding/javafundamental/perulangan/While.class differ
diff --git a/Modul1Basic/Perulangan/src/com/dicoding/javafundamental/perulangan/DoWhile.java b/Modul1Basic/Perulangan/src/com/dicoding/javafundamental/perulangan/DoWhile.java
new file mode 100644
index 0000000..02671de
--- /dev/null
+++ b/Modul1Basic/Perulangan/src/com/dicoding/javafundamental/perulangan/DoWhile.java
@@ -0,0 +1,11 @@
+package com.dicoding.javafundamental.perulangan;
+
+public class DoWhile {
+ public static void main(String[] args) {
+ int value = 1;
+ do {
+ System.out.println("Angka : " + value);
+ value++;
+ } while (value <= 10);
+ }
+}
diff --git a/Modul1Basic/Perulangan/src/com/dicoding/javafundamental/perulangan/For.java b/Modul1Basic/Perulangan/src/com/dicoding/javafundamental/perulangan/For.java
new file mode 100644
index 0000000..f508ba4
--- /dev/null
+++ b/Modul1Basic/Perulangan/src/com/dicoding/javafundamental/perulangan/For.java
@@ -0,0 +1,9 @@
+package com.dicoding.javafundamental.perulangan;
+
+public class For {
+ public static void main(String[] args) {
+ for (int i = 1; i <= 10; i++) {
+ System.out.println("Angka : " + i);
+ }
+ }
+}
diff --git a/Modul1Basic/Perulangan/src/com/dicoding/javafundamental/perulangan/ForBersarang.java b/Modul1Basic/Perulangan/src/com/dicoding/javafundamental/perulangan/ForBersarang.java
new file mode 100644
index 0000000..037125f
--- /dev/null
+++ b/Modul1Basic/Perulangan/src/com/dicoding/javafundamental/perulangan/ForBersarang.java
@@ -0,0 +1,13 @@
+package com.dicoding.javafundamental.perulangan;
+
+public class ForBersarang {
+ public static void main(String[] args) {
+ int a = 5;
+ for (int i = 0; i <= a; i++) {
+ for (int j = 0; j <= i; j++) {
+ System.out.print("*");
+ }
+ System.out.println("");
+ }
+ }
+}
diff --git a/Modul1Basic/Perulangan/src/com/dicoding/javafundamental/perulangan/While.java b/Modul1Basic/Perulangan/src/com/dicoding/javafundamental/perulangan/While.java
new file mode 100644
index 0000000..b38c0e5
--- /dev/null
+++ b/Modul1Basic/Perulangan/src/com/dicoding/javafundamental/perulangan/While.java
@@ -0,0 +1,12 @@
+package com.dicoding.javafundamental.perulangan;
+
+public class While {
+ public static void main(String[] args) {
+ int value = 1;
+ while (value <= 10) {
+ System.out.print("Angka : " + value);
+ value++;
+ System.out.print("\n");
+ }
+ }
+}
diff --git a/Modul1Basic/String/.idea/misc.xml b/Modul1Basic/String/.idea/misc.xml
new file mode 100644
index 0000000..72cfda0
--- /dev/null
+++ b/Modul1Basic/String/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul1Basic/String/.idea/modules.xml b/Modul1Basic/String/.idea/modules.xml
new file mode 100644
index 0000000..9e97bed
--- /dev/null
+++ b/Modul1Basic/String/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul1Basic/String/.idea/workspace.xml b/Modul1Basic/String/.idea/workspace.xml
new file mode 100644
index 0000000..b015a2f
--- /dev/null
+++ b/Modul1Basic/String/.idea/workspace.xml
@@ -0,0 +1,154 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1563280421492
+
+
+ 1563280421492
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul1Basic/String/String.iml b/Modul1Basic/String/String.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/Modul1Basic/String/String.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul1Basic/String/out/production/String/com/dicoding/javafundamental/string/MyString.class b/Modul1Basic/String/out/production/String/com/dicoding/javafundamental/string/MyString.class
new file mode 100644
index 0000000..2bc2eb0
Binary files /dev/null and b/Modul1Basic/String/out/production/String/com/dicoding/javafundamental/string/MyString.class differ
diff --git a/Modul1Basic/String/src/com/dicoding/javafundamental/string/MyString.java b/Modul1Basic/String/src/com/dicoding/javafundamental/string/MyString.java
new file mode 100644
index 0000000..39d81fe
--- /dev/null
+++ b/Modul1Basic/String/src/com/dicoding/javafundamental/string/MyString.java
@@ -0,0 +1,16 @@
+package com.dicoding.javafundamental.string;
+
+public class MyString {
+ public static void main(String[] args) {
+ char[] dicodingChar = { 'd', 'i', 'c', 'o', 'd', 'i', 'n', 'g' };
+ String dicodingString = new String(dicodingChar);
+ System.out.println(dicodingString);
+
+ String dicoding = "dicoding";
+ int length = dicoding.length();
+ System.out.println(length);
+
+ char result = dicoding.charAt(7);
+ System.out.println(result);
+ }
+}
diff --git a/Modul1Basic/StrukturDasar/.idea/artifacts/StrukturDasar_jar.xml b/Modul1Basic/StrukturDasar/.idea/artifacts/StrukturDasar_jar.xml
new file mode 100644
index 0000000..79710a7
--- /dev/null
+++ b/Modul1Basic/StrukturDasar/.idea/artifacts/StrukturDasar_jar.xml
@@ -0,0 +1,10 @@
+
+
+ $PROJECT_DIR$/out/artifacts/StrukturDasar_jar
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul1Basic/StrukturDasar/.idea/libraries/commons_lang3_3_9.xml b/Modul1Basic/StrukturDasar/.idea/libraries/commons_lang3_3_9.xml
new file mode 100644
index 0000000..027aecf
--- /dev/null
+++ b/Modul1Basic/StrukturDasar/.idea/libraries/commons_lang3_3_9.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul1Basic/StrukturDasar/.idea/libraries/commons_lang3_3_9__2_.xml b/Modul1Basic/StrukturDasar/.idea/libraries/commons_lang3_3_9__2_.xml
new file mode 100644
index 0000000..913471f
--- /dev/null
+++ b/Modul1Basic/StrukturDasar/.idea/libraries/commons_lang3_3_9__2_.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul1Basic/StrukturDasar/.idea/misc.xml b/Modul1Basic/StrukturDasar/.idea/misc.xml
new file mode 100644
index 0000000..72cfda0
--- /dev/null
+++ b/Modul1Basic/StrukturDasar/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul1Basic/StrukturDasar/.idea/modules.xml b/Modul1Basic/StrukturDasar/.idea/modules.xml
new file mode 100644
index 0000000..4a2a416
--- /dev/null
+++ b/Modul1Basic/StrukturDasar/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul1Basic/StrukturDasar/.idea/workspace.xml b/Modul1Basic/StrukturDasar/.idea/workspace.xml
new file mode 100644
index 0000000..b1472fd
--- /dev/null
+++ b/Modul1Basic/StrukturDasar/.idea/workspace.xml
@@ -0,0 +1,471 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1563273923624
+
+
+ 1563273923624
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ StrukturDasar:jar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul1Basic/StrukturDasar/StrukturDasar.iml b/Modul1Basic/StrukturDasar/StrukturDasar.iml
new file mode 100644
index 0000000..7b36e29
--- /dev/null
+++ b/Modul1Basic/StrukturDasar/StrukturDasar.iml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul1Basic/StrukturDasar/lib/commons-lang3-3.9.jar b/Modul1Basic/StrukturDasar/lib/commons-lang3-3.9.jar
new file mode 100644
index 0000000..0d89693
Binary files /dev/null and b/Modul1Basic/StrukturDasar/lib/commons-lang3-3.9.jar differ
diff --git a/Modul1Basic/StrukturDasar/out/artifacts/StrukturDasar_jar/StrukturDasar.jar b/Modul1Basic/StrukturDasar/out/artifacts/StrukturDasar_jar/StrukturDasar.jar
new file mode 100644
index 0000000..d861524
Binary files /dev/null and b/Modul1Basic/StrukturDasar/out/artifacts/StrukturDasar_jar/StrukturDasar.jar differ
diff --git a/Modul1Basic/StrukturDasar/out/production/StrukturDasar/META-INF/MANIFEST.MF b/Modul1Basic/StrukturDasar/out/production/StrukturDasar/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..7c667cc
--- /dev/null
+++ b/Modul1Basic/StrukturDasar/out/production/StrukturDasar/META-INF/MANIFEST.MF
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Main-Class: com.dicoding.javafundamental.basic.Main
+
diff --git a/Modul1Basic/StrukturDasar/out/production/StrukturDasar/com/dicoding/javafundamental/basic/Main.class b/Modul1Basic/StrukturDasar/out/production/StrukturDasar/com/dicoding/javafundamental/basic/Main.class
new file mode 100644
index 0000000..ba25e00
Binary files /dev/null and b/Modul1Basic/StrukturDasar/out/production/StrukturDasar/com/dicoding/javafundamental/basic/Main.class differ
diff --git a/Modul1Basic/StrukturDasar/out/production/StrukturDasar/com/dicoding/javafundamental/basic/kendaraan/Kereta.class b/Modul1Basic/StrukturDasar/out/production/StrukturDasar/com/dicoding/javafundamental/basic/kendaraan/Kereta.class
new file mode 100644
index 0000000..ff0d8ee
Binary files /dev/null and b/Modul1Basic/StrukturDasar/out/production/StrukturDasar/com/dicoding/javafundamental/basic/kendaraan/Kereta.class differ
diff --git a/Modul1Basic/StrukturDasar/out/production/StrukturDasar/com/dicoding/javafundamental/basic/kendaraan/Mobil.class b/Modul1Basic/StrukturDasar/out/production/StrukturDasar/com/dicoding/javafundamental/basic/kendaraan/Mobil.class
new file mode 100644
index 0000000..62ccbe3
Binary files /dev/null and b/Modul1Basic/StrukturDasar/out/production/StrukturDasar/com/dicoding/javafundamental/basic/kendaraan/Mobil.class differ
diff --git a/Modul1Basic/StrukturDasar/out/production/StrukturDasar/com/dicoding/javafundamental/basic/kendaraan/Motor.class b/Modul1Basic/StrukturDasar/out/production/StrukturDasar/com/dicoding/javafundamental/basic/kendaraan/Motor.class
new file mode 100644
index 0000000..00254b7
Binary files /dev/null and b/Modul1Basic/StrukturDasar/out/production/StrukturDasar/com/dicoding/javafundamental/basic/kendaraan/Motor.class differ
diff --git a/Modul1Basic/StrukturDasar/out/production/StrukturDasar/com/dicoding/javafundamental/basic/musik/Gitar.class b/Modul1Basic/StrukturDasar/out/production/StrukturDasar/com/dicoding/javafundamental/basic/musik/Gitar.class
new file mode 100644
index 0000000..1ed4196
Binary files /dev/null and b/Modul1Basic/StrukturDasar/out/production/StrukturDasar/com/dicoding/javafundamental/basic/musik/Gitar.class differ
diff --git a/Modul1Basic/StrukturDasar/src/META-INF/MANIFEST.MF b/Modul1Basic/StrukturDasar/src/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..7c667cc
--- /dev/null
+++ b/Modul1Basic/StrukturDasar/src/META-INF/MANIFEST.MF
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Main-Class: com.dicoding.javafundamental.basic.Main
+
diff --git a/Modul1Basic/StrukturDasar/src/com/dicoding/javafundamental/basic/Main.java b/Modul1Basic/StrukturDasar/src/com/dicoding/javafundamental/basic/Main.java
new file mode 100644
index 0000000..1b098b9
--- /dev/null
+++ b/Modul1Basic/StrukturDasar/src/com/dicoding/javafundamental/basic/Main.java
@@ -0,0 +1,23 @@
+package com.dicoding.javafundamental.basic;
+
+import com.dicoding.javafundamental.basic.kendaraan.*;
+import com.dicoding.javafundamental.basic.musik.Gitar;
+import org.apache.commons.lang3.time.DateUtils;
+
+import java.util.Date;
+
+public class Main {
+ public static void main(String[] args) {
+ System.out.println("Hello world!");
+ Gitar.bunyi();
+
+ Mobil.jumlahBan();
+ Motor.jumlahBan();
+ Kereta.jumlahBan();
+
+ Date today = new Date();
+ System.out.println("Hari ini = " + today);
+ Date tomorrow = DateUtils.addDays(today, 1);
+ System.out.println("Besok = " + tomorrow);
+ }
+}
\ No newline at end of file
diff --git a/Modul1Basic/StrukturDasar/src/com/dicoding/javafundamental/basic/kendaraan/Kereta.java b/Modul1Basic/StrukturDasar/src/com/dicoding/javafundamental/basic/kendaraan/Kereta.java
new file mode 100644
index 0000000..b029d63
--- /dev/null
+++ b/Modul1Basic/StrukturDasar/src/com/dicoding/javafundamental/basic/kendaraan/Kereta.java
@@ -0,0 +1,7 @@
+package com.dicoding.javafundamental.basic.kendaraan;
+
+public class Kereta {
+ public static void jumlahBan() {
+ System.out.println("Ban kereta banyak!");
+ }
+}
diff --git a/Modul1Basic/StrukturDasar/src/com/dicoding/javafundamental/basic/kendaraan/Mobil.java b/Modul1Basic/StrukturDasar/src/com/dicoding/javafundamental/basic/kendaraan/Mobil.java
new file mode 100644
index 0000000..839f66a
--- /dev/null
+++ b/Modul1Basic/StrukturDasar/src/com/dicoding/javafundamental/basic/kendaraan/Mobil.java
@@ -0,0 +1,7 @@
+package com.dicoding.javafundamental.basic.kendaraan;
+
+public class Mobil {
+ public static void jumlahBan(){
+ System.out.println("Ban mobil 4");
+ }
+}
diff --git a/Modul1Basic/StrukturDasar/src/com/dicoding/javafundamental/basic/kendaraan/Motor.java b/Modul1Basic/StrukturDasar/src/com/dicoding/javafundamental/basic/kendaraan/Motor.java
new file mode 100644
index 0000000..1e199fb
--- /dev/null
+++ b/Modul1Basic/StrukturDasar/src/com/dicoding/javafundamental/basic/kendaraan/Motor.java
@@ -0,0 +1,7 @@
+package com.dicoding.javafundamental.basic.kendaraan;
+
+public class Motor {
+ public static void jumlahBan() {
+ System.out.println("Ban motor 2");
+ }
+}
diff --git a/Modul1Basic/StrukturDasar/src/com/dicoding/javafundamental/basic/musik/Gitar.java b/Modul1Basic/StrukturDasar/src/com/dicoding/javafundamental/basic/musik/Gitar.java
new file mode 100644
index 0000000..630d66d
--- /dev/null
+++ b/Modul1Basic/StrukturDasar/src/com/dicoding/javafundamental/basic/musik/Gitar.java
@@ -0,0 +1,7 @@
+package com.dicoding.javafundamental.basic.musik;
+
+public class Gitar {
+ public static void bunyi(){
+ System.out.println("jrenggg..");
+ }
+}
diff --git a/Modul2OOP/AccessModifier/.idea/misc.xml b/Modul2OOP/AccessModifier/.idea/misc.xml
new file mode 100644
index 0000000..72cfda0
--- /dev/null
+++ b/Modul2OOP/AccessModifier/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/AccessModifier/.idea/modules.xml b/Modul2OOP/AccessModifier/.idea/modules.xml
new file mode 100644
index 0000000..c4fc378
--- /dev/null
+++ b/Modul2OOP/AccessModifier/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/AccessModifier/.idea/uiDesigner.xml b/Modul2OOP/AccessModifier/.idea/uiDesigner.xml
new file mode 100644
index 0000000..e96534f
--- /dev/null
+++ b/Modul2OOP/AccessModifier/.idea/uiDesigner.xml
@@ -0,0 +1,124 @@
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/AccessModifier/.idea/workspace.xml b/Modul2OOP/AccessModifier/.idea/workspace.xml
new file mode 100644
index 0000000..cff39f7
--- /dev/null
+++ b/Modul2OOP/AccessModifier/.idea/workspace.xml
@@ -0,0 +1,382 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1563441731797
+
+
+ 1563441731797
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/AccessModifier/AccessModifier.iml b/Modul2OOP/AccessModifier/AccessModifier.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/Modul2OOP/AccessModifier/AccessModifier.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/AccessModifier/out/production/AccessModifier/META-INF/AccessModifier.kotlin_module b/Modul2OOP/AccessModifier/out/production/AccessModifier/META-INF/AccessModifier.kotlin_module
new file mode 100644
index 0000000..8fb6019
Binary files /dev/null and b/Modul2OOP/AccessModifier/out/production/AccessModifier/META-INF/AccessModifier.kotlin_module differ
diff --git a/Modul2OOP/AccessModifier/out/production/AccessModifier/com/dicoding/javafundamental/accessmodifier/package1/KelasA.class b/Modul2OOP/AccessModifier/out/production/AccessModifier/com/dicoding/javafundamental/accessmodifier/package1/KelasA.class
new file mode 100644
index 0000000..501e96f
Binary files /dev/null and b/Modul2OOP/AccessModifier/out/production/AccessModifier/com/dicoding/javafundamental/accessmodifier/package1/KelasA.class differ
diff --git a/Modul2OOP/AccessModifier/out/production/AccessModifier/com/dicoding/javafundamental/accessmodifier/package1/Main.class b/Modul2OOP/AccessModifier/out/production/AccessModifier/com/dicoding/javafundamental/accessmodifier/package1/Main.class
new file mode 100644
index 0000000..d62be6c
Binary files /dev/null and b/Modul2OOP/AccessModifier/out/production/AccessModifier/com/dicoding/javafundamental/accessmodifier/package1/Main.class differ
diff --git a/Modul2OOP/AccessModifier/out/production/AccessModifier/com/dicoding/javafundamental/accessmodifier/package2/KelasB.class b/Modul2OOP/AccessModifier/out/production/AccessModifier/com/dicoding/javafundamental/accessmodifier/package2/KelasB.class
new file mode 100644
index 0000000..2dced25
Binary files /dev/null and b/Modul2OOP/AccessModifier/out/production/AccessModifier/com/dicoding/javafundamental/accessmodifier/package2/KelasB.class differ
diff --git a/Modul2OOP/AccessModifier/out/production/AccessModifier/com/dicoding/javafundamental/accessmodifier/package2/Main.class b/Modul2OOP/AccessModifier/out/production/AccessModifier/com/dicoding/javafundamental/accessmodifier/package2/Main.class
new file mode 100644
index 0000000..e7df02b
Binary files /dev/null and b/Modul2OOP/AccessModifier/out/production/AccessModifier/com/dicoding/javafundamental/accessmodifier/package2/Main.class differ
diff --git a/Modul2OOP/AccessModifier/out/production/AccessModifier/com/dicoding/javafundamental/accessmodifier/package3/Main.class b/Modul2OOP/AccessModifier/out/production/AccessModifier/com/dicoding/javafundamental/accessmodifier/package3/Main.class
new file mode 100644
index 0000000..7acb53f
Binary files /dev/null and b/Modul2OOP/AccessModifier/out/production/AccessModifier/com/dicoding/javafundamental/accessmodifier/package3/Main.class differ
diff --git a/Modul2OOP/AccessModifier/out/production/AccessModifier/com/dicoding/javafundamental/accessmodifier/package3/Perhitungan.class b/Modul2OOP/AccessModifier/out/production/AccessModifier/com/dicoding/javafundamental/accessmodifier/package3/Perhitungan.class
new file mode 100644
index 0000000..1245062
Binary files /dev/null and b/Modul2OOP/AccessModifier/out/production/AccessModifier/com/dicoding/javafundamental/accessmodifier/package3/Perhitungan.class differ
diff --git a/Modul2OOP/AccessModifier/src/com/dicoding/javafundamental/accessmodifier/package1/KelasA.java b/Modul2OOP/AccessModifier/src/com/dicoding/javafundamental/accessmodifier/package1/KelasA.java
new file mode 100644
index 0000000..cc3763f
--- /dev/null
+++ b/Modul2OOP/AccessModifier/src/com/dicoding/javafundamental/accessmodifier/package1/KelasA.java
@@ -0,0 +1,23 @@
+package com.dicoding.javafundamental.accessmodifier.package1;
+
+public class KelasA {
+
+ private int memberA = 5;
+
+ char memberB = 'A';
+ double memberC = 1.5;
+
+ private int functionA() {
+ return memberA;
+ }
+
+ int functionB() {
+ // Pemanggilan private member dan private function
+ int hasil = functionA() + memberA;
+ return hasil;
+ }
+
+ protected void methodC(){
+ System.out.println("Percobaan access modifier!!!");
+ }
+}
\ No newline at end of file
diff --git a/Modul2OOP/AccessModifier/src/com/dicoding/javafundamental/accessmodifier/package1/Main.java b/Modul2OOP/AccessModifier/src/com/dicoding/javafundamental/accessmodifier/package1/Main.java
new file mode 100644
index 0000000..d5a500e
--- /dev/null
+++ b/Modul2OOP/AccessModifier/src/com/dicoding/javafundamental/accessmodifier/package1/Main.java
@@ -0,0 +1,12 @@
+package com.dicoding.javafundamental.accessmodifier.package1;
+
+public class Main {
+ public static void main(String[] args) {
+ KelasA kelasA = new KelasA();
+
+ System.out.println(kelasA.functionB());
+
+ System.out.println(kelasA.memberB);
+ System.out.println(kelasA.memberC);
+ }
+}
diff --git a/Modul2OOP/AccessModifier/src/com/dicoding/javafundamental/accessmodifier/package2/KelasB.java b/Modul2OOP/AccessModifier/src/com/dicoding/javafundamental/accessmodifier/package2/KelasB.java
new file mode 100644
index 0000000..04579a1
--- /dev/null
+++ b/Modul2OOP/AccessModifier/src/com/dicoding/javafundamental/accessmodifier/package2/KelasB.java
@@ -0,0 +1,13 @@
+package com.dicoding.javafundamental.accessmodifier.package2;
+
+import com.dicoding.javafundamental.accessmodifier.package1.KelasA;
+
+public class KelasB extends KelasA {
+
+ @Override
+ protected void methodC() {
+ super.methodC();
+
+ System.out.println("Contoh pemanggilan protected dari package luar");
+ }
+}
diff --git a/Modul2OOP/AccessModifier/src/com/dicoding/javafundamental/accessmodifier/package2/Main.java b/Modul2OOP/AccessModifier/src/com/dicoding/javafundamental/accessmodifier/package2/Main.java
new file mode 100644
index 0000000..2f91936
--- /dev/null
+++ b/Modul2OOP/AccessModifier/src/com/dicoding/javafundamental/accessmodifier/package2/Main.java
@@ -0,0 +1,21 @@
+package com.dicoding.javafundamental.accessmodifier.package2;
+
+import com.dicoding.javafundamental.accessmodifier.package1.KelasA;
+
+public class Main {
+ public static void main(String[] args) {
+
+ // Kode ini pasti akan mengalami kompiler error
+
+ KelasA kelasA = new KelasA();
+
+ //System.out.println(kelasA.functionB());
+
+ //System.out.println(kelasA.memberB);
+ //System.out.println(kelasA.memberC);
+
+ KelasB kelasB = new KelasB();
+ kelasB.methodC();
+
+ }
+}
\ No newline at end of file
diff --git a/Modul2OOP/AccessModifier/src/com/dicoding/javafundamental/accessmodifier/package3/Main.java b/Modul2OOP/AccessModifier/src/com/dicoding/javafundamental/accessmodifier/package3/Main.java
new file mode 100644
index 0000000..2328a00
--- /dev/null
+++ b/Modul2OOP/AccessModifier/src/com/dicoding/javafundamental/accessmodifier/package3/Main.java
@@ -0,0 +1,15 @@
+package com.dicoding.javafundamental.accessmodifier.package3;
+
+public class Main {
+ public static void main(String[] args) {
+ System.out.println("Nilainya adalah " + Perhitungan.nilai);
+
+ for (int x = 0 ; x < 5; x++){
+ new Perhitungan();
+ }
+
+ System.out.println("Sampai "+Perhitungan.nilai);
+
+ System.out.println("getNilai memiliki nilai " + Perhitungan.getNilai());
+ }
+}
\ No newline at end of file
diff --git a/Modul2OOP/AccessModifier/src/com/dicoding/javafundamental/accessmodifier/package3/Perhitungan.java b/Modul2OOP/AccessModifier/src/com/dicoding/javafundamental/accessmodifier/package3/Perhitungan.java
new file mode 100644
index 0000000..a0f2733
--- /dev/null
+++ b/Modul2OOP/AccessModifier/src/com/dicoding/javafundamental/accessmodifier/package3/Perhitungan.java
@@ -0,0 +1,13 @@
+package com.dicoding.javafundamental.accessmodifier.package3;
+
+public class Perhitungan {
+ public static int nilai = 0;
+
+ protected static int getNilai(){
+ return nilai;
+ }
+
+ Perhitungan() {
+ nilai++;
+ }
+}
diff --git a/Modul2OOP/AccessModifier/src/com/dicoding/javafundamental/accessmodifier/package4/Lingkaran.java b/Modul2OOP/AccessModifier/src/com/dicoding/javafundamental/accessmodifier/package4/Lingkaran.java
new file mode 100644
index 0000000..19cac9d
--- /dev/null
+++ b/Modul2OOP/AccessModifier/src/com/dicoding/javafundamental/accessmodifier/package4/Lingkaran.java
@@ -0,0 +1,11 @@
+package com.dicoding.javafundamental.accessmodifier.package4;
+
+public class Lingkaran {
+ static final double PI = 3.141;
+
+ int jari = 7;
+
+ final double getLuas() {
+ return PI * (jari * jari);
+ }
+}
diff --git a/Modul2OOP/AccessModifier/src/com/dicoding/javafundamental/accessmodifier/package4/Perhitungan.java b/Modul2OOP/AccessModifier/src/com/dicoding/javafundamental/accessmodifier/package4/Perhitungan.java
new file mode 100644
index 0000000..0f50cec
--- /dev/null
+++ b/Modul2OOP/AccessModifier/src/com/dicoding/javafundamental/accessmodifier/package4/Perhitungan.java
@@ -0,0 +1,10 @@
+package com.dicoding.javafundamental.accessmodifier.package4;
+
+public class Perhitungan {
+ int nilai = 5;
+
+ void ubahNilai(){
+ // Kode di bawah akan menampilkan error
+ nilai = 10;
+ }
+}
diff --git a/Modul2OOP/Class/.idea/workspace.xml b/Modul2OOP/Class/.idea/workspace.xml
new file mode 100644
index 0000000..259dd6c
--- /dev/null
+++ b/Modul2OOP/Class/.idea/workspace.xml
@@ -0,0 +1,213 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1563354694503
+
+
+ 1563354694503
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Kelas
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/Function/.idea/misc.xml b/Modul2OOP/Function/.idea/misc.xml
new file mode 100644
index 0000000..72cfda0
--- /dev/null
+++ b/Modul2OOP/Function/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/Function/.idea/modules.xml b/Modul2OOP/Function/.idea/modules.xml
new file mode 100644
index 0000000..8962661
--- /dev/null
+++ b/Modul2OOP/Function/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/Function/.idea/workspace.xml b/Modul2OOP/Function/.idea/workspace.xml
new file mode 100644
index 0000000..330807e
--- /dev/null
+++ b/Modul2OOP/Function/.idea/workspace.xml
@@ -0,0 +1,246 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1563358673122
+
+
+ 1563358673122
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/Function/Function.iml b/Modul2OOP/Function/Function.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/Modul2OOP/Function/Function.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/Function/out/production/Function/com/dicoding/javafundamental/function/CallFunction.class b/Modul2OOP/Function/out/production/Function/com/dicoding/javafundamental/function/CallFunction.class
new file mode 100644
index 0000000..d7745dc
Binary files /dev/null and b/Modul2OOP/Function/out/production/Function/com/dicoding/javafundamental/function/CallFunction.class differ
diff --git a/Modul2OOP/Function/out/production/Function/com/dicoding/javafundamental/function/InputFunction.class b/Modul2OOP/Function/out/production/Function/com/dicoding/javafundamental/function/InputFunction.class
new file mode 100644
index 0000000..54165e4
Binary files /dev/null and b/Modul2OOP/Function/out/production/Function/com/dicoding/javafundamental/function/InputFunction.class differ
diff --git a/Modul2OOP/Function/out/production/Function/com/dicoding/javafundamental/function/MethodOverloading.class b/Modul2OOP/Function/out/production/Function/com/dicoding/javafundamental/function/MethodOverloading.class
new file mode 100644
index 0000000..c6596f1
Binary files /dev/null and b/Modul2OOP/Function/out/production/Function/com/dicoding/javafundamental/function/MethodOverloading.class differ
diff --git a/Modul2OOP/Function/out/production/Function/com/dicoding/javafundamental/function/ReturnFunction.class b/Modul2OOP/Function/out/production/Function/com/dicoding/javafundamental/function/ReturnFunction.class
new file mode 100644
index 0000000..59ec4e1
Binary files /dev/null and b/Modul2OOP/Function/out/production/Function/com/dicoding/javafundamental/function/ReturnFunction.class differ
diff --git a/Modul2OOP/Function/src/com/dicoding/javafundamental/function/CallFunction.java b/Modul2OOP/Function/src/com/dicoding/javafundamental/function/CallFunction.java
new file mode 100644
index 0000000..85d30de
--- /dev/null
+++ b/Modul2OOP/Function/src/com/dicoding/javafundamental/function/CallFunction.java
@@ -0,0 +1,13 @@
+package com.dicoding.javafundamental.function;
+
+public class CallFunction {
+
+ public static void main(String[] args) {
+ // memanggil fungsi
+ cobaFungsi();
+ }
+
+ public static void cobaFungsi() {
+ System.out.println("Ini merupakan bagian dari fungsi");
+ }
+}
\ No newline at end of file
diff --git a/Modul2OOP/Function/src/com/dicoding/javafundamental/function/InputFunction.java b/Modul2OOP/Function/src/com/dicoding/javafundamental/function/InputFunction.java
new file mode 100644
index 0000000..347784f
--- /dev/null
+++ b/Modul2OOP/Function/src/com/dicoding/javafundamental/function/InputFunction.java
@@ -0,0 +1,16 @@
+package com.dicoding.javafundamental.function;
+
+public class InputFunction {
+ public static void main(String[] args) {
+
+ // memanggil fungsi
+ hitungLuas(7, 6.5);
+ }
+
+ public static void hitungLuas(double panjang, double lebar) {
+ double luas;
+ luas = panjang * lebar;
+ System.out.println(luas);
+ }
+}
+
diff --git a/Modul2OOP/Function/src/com/dicoding/javafundamental/function/MethodOverloading.java b/Modul2OOP/Function/src/com/dicoding/javafundamental/function/MethodOverloading.java
new file mode 100644
index 0000000..a036416
--- /dev/null
+++ b/Modul2OOP/Function/src/com/dicoding/javafundamental/function/MethodOverloading.java
@@ -0,0 +1,24 @@
+package com.dicoding.javafundamental.function;
+
+public class MethodOverloading {
+ public static void main(String[] args) {
+ double p = 7;
+ double l = 6.5;
+ double hasil = hitungLuas(p, l);
+ System.out.println("Hasilnya adalah = " + hasil);
+ int pn = 7;
+ int lb = 6;
+ int hsl = hitungLuas(pn, lb);
+ System.out.println("Hasilnya adalah = " + hsl);
+ }
+
+ public static double hitungLuas(double panjang, double lebar) {
+ double luas = panjang * lebar;
+ return luas;
+ }
+
+ public static int hitungLuas(int panjang, int lebar) {
+ int luas = panjang * lebar;
+ return luas;
+ }
+}
diff --git a/Modul2OOP/Function/src/com/dicoding/javafundamental/function/ReturnFunction.java b/Modul2OOP/Function/src/com/dicoding/javafundamental/function/ReturnFunction.java
new file mode 100644
index 0000000..37557dc
--- /dev/null
+++ b/Modul2OOP/Function/src/com/dicoding/javafundamental/function/ReturnFunction.java
@@ -0,0 +1,16 @@
+package com.dicoding.javafundamental.function;
+
+public class ReturnFunction {
+ public static void main(String[] args) {
+ double p = 7;
+ double l = 6.5;
+ double hasil = hitungLuas(p,l); //memanggil fungsi
+ System.out.println("Hasilnya adalah = " + hasil);
+ }
+
+ //fungsi dengan nilai balik
+ public static double hitungLuas(double panjang, double lebar){
+ double luas = panjang * lebar;
+ return luas;
+ }
+}
diff --git a/Modul2OOP/Inheritance/.idea/misc.xml b/Modul2OOP/Inheritance/.idea/misc.xml
new file mode 100644
index 0000000..72cfda0
--- /dev/null
+++ b/Modul2OOP/Inheritance/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/Inheritance/.idea/modules.xml b/Modul2OOP/Inheritance/.idea/modules.xml
new file mode 100644
index 0000000..1c35629
--- /dev/null
+++ b/Modul2OOP/Inheritance/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/Inheritance/.idea/workspace.xml b/Modul2OOP/Inheritance/.idea/workspace.xml
new file mode 100644
index 0000000..4fb82c8
--- /dev/null
+++ b/Modul2OOP/Inheritance/.idea/workspace.xml
@@ -0,0 +1,252 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1563767850202
+
+
+ 1563767850202
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/Inheritance/Inheritance.iml b/Modul2OOP/Inheritance/Inheritance.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/Modul2OOP/Inheritance/Inheritance.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/Inheritance/out/production/Inheritance/com/dicoding/javafundamental/inheritance/Hewan.class b/Modul2OOP/Inheritance/out/production/Inheritance/com/dicoding/javafundamental/inheritance/Hewan.class
new file mode 100644
index 0000000..67856dc
Binary files /dev/null and b/Modul2OOP/Inheritance/out/production/Inheritance/com/dicoding/javafundamental/inheritance/Hewan.class differ
diff --git a/Modul2OOP/Inheritance/out/production/Inheritance/com/dicoding/javafundamental/inheritance/Kucing.class b/Modul2OOP/Inheritance/out/production/Inheritance/com/dicoding/javafundamental/inheritance/Kucing.class
new file mode 100644
index 0000000..144de94
Binary files /dev/null and b/Modul2OOP/Inheritance/out/production/Inheritance/com/dicoding/javafundamental/inheritance/Kucing.class differ
diff --git a/Modul2OOP/Inheritance/out/production/Inheritance/com/dicoding/javafundamental/inheritance/Main.class b/Modul2OOP/Inheritance/out/production/Inheritance/com/dicoding/javafundamental/inheritance/Main.class
new file mode 100644
index 0000000..92f3264
Binary files /dev/null and b/Modul2OOP/Inheritance/out/production/Inheritance/com/dicoding/javafundamental/inheritance/Main.class differ
diff --git a/Modul2OOP/Inheritance/src/com/dicoding/javafundamental/inheritance/Hewan.java b/Modul2OOP/Inheritance/src/com/dicoding/javafundamental/inheritance/Hewan.java
new file mode 100644
index 0000000..4b45411
--- /dev/null
+++ b/Modul2OOP/Inheritance/src/com/dicoding/javafundamental/inheritance/Hewan.java
@@ -0,0 +1,11 @@
+package com.dicoding.javafundamental.inheritance;
+
+public class Hewan {
+ public Hewan() {
+ System.out.println("construct Hewan");
+ }
+
+ public void makan() { // base method
+ System.out.println("Hewan sedang makan..");
+ }
+}
diff --git a/Modul2OOP/Inheritance/src/com/dicoding/javafundamental/inheritance/Kucing.java b/Modul2OOP/Inheritance/src/com/dicoding/javafundamental/inheritance/Kucing.java
new file mode 100644
index 0000000..e518a11
--- /dev/null
+++ b/Modul2OOP/Inheritance/src/com/dicoding/javafundamental/inheritance/Kucing.java
@@ -0,0 +1,43 @@
+package com.dicoding.javafundamental.inheritance;
+
+public class Kucing extends Hewan implements Mamalia{
+
+ private String ras;
+ private String habitat;
+
+ public Kucing(String ras, String habitat) {
+ this.ras = ras;
+ this.habitat = habitat;
+ }
+
+ @Override
+ public String toString() {
+ return "Kucing ras: " + ras + ", habitat: " + habitat;
+ }
+
+
+ @Override
+ public boolean equals(Object obj) {
+ if (obj instanceof Kucing) {
+ Kucing other = (Kucing) obj;
+ return this.ras.equals(other.ras);
+ } else {
+ return false;
+ }
+ }
+
+ public Kucing() {
+ //super(); // akan tetap memanggil constructor dari parent Class
+ System.out.println("construct Kucing");
+ }
+
+ public void makan() { // overriding
+ System.out.println("Kucing sedang makan..");
+ }
+
+ public void makan(String food) { // overloading
+ System.out.println("Kucing makan " + food);
+ }
+}
+
+
diff --git a/Modul2OOP/Inheritance/src/com/dicoding/javafundamental/inheritance/Main.java b/Modul2OOP/Inheritance/src/com/dicoding/javafundamental/inheritance/Main.java
new file mode 100644
index 0000000..da5da33
--- /dev/null
+++ b/Modul2OOP/Inheritance/src/com/dicoding/javafundamental/inheritance/Main.java
@@ -0,0 +1,60 @@
+package com.dicoding.javafundamental.inheritance;
+
+public class Main {
+ public static void main(String[] args) {
+ Hewan hewan = new Hewan(); // memanggil constructor
+ System.out.println("Apakah hewan IS-A Objek -> " + (hewan instanceof Object));
+ System.out.println("Apakah hewan IS-A Hewan -> " + (hewan instanceof Hewan));
+ System.out.println("Apakah hewan IS-A Kucing -> " + (hewan instanceof Kucing));
+
+ System.out.println("------------------------");
+
+ Kucing kucing = new Kucing(); // memanggil constructor
+ System.out.println("Apakah hewan IS-A Objek -> " + (kucing instanceof Object));
+ System.out.println("Apakah kucing IS-A Hewan -> " + (kucing instanceof Hewan));
+ System.out.println("Apakah kucing IS-A Kucing -> " + (kucing instanceof Kucing));
+
+ System.out.println("------------------------");
+
+ hewan.makan();
+ kucing.makan();
+ kucing.makan("daging ikan");
+
+ System.out.println("------------------------");
+
+ Kucing meow = new Kucing("Ocicat", "tropis");
+ Kucing puss = new Kucing("Ocicat", "subtropis");
+ Kucing popo = new Kucing("Anggora", "subtropis");
+
+ System.out.println(meow.toString());
+ System.out.println(puss.toString());
+ System.out.println(popo.toString());
+
+ System.out.println("meow equals puss ? " + meow.equals(puss));
+ System.out.println("meow equals popo ? " + meow.equals(popo));
+
+ System.out.println("------------------------");
+
+ Object o = new Kucing(); // kucing adalah Object
+ Hewan h = new Kucing(); // kucing adalah Hewan
+ Kucing k = new Kucing(); // kucing adalah Kucing, pastinya :)
+
+ //o.makan(); -> error, karena method makan() tidak ada di class Object
+ h.makan();
+ k.makan();
+
+ Object object = k; // bisa langsung diassign
+ Hewan hewanK= k; // bisa langsung diassign
+
+ //object.makan(); -> error, karena method makan() tidak ada di class Object
+ hewanK.makan();
+
+ Kucing kucingK = (Kucing) h; // tidak bisa langsung diassign, perlu casting
+ kucingK.makan();
+
+ Hewan harimau = new Hewan();
+ Kucing anggora = (Kucing) harimau; // compile OK tetapi runtime error ClassCastException
+
+ Mamalia mamalia = new Kucing();
+ }
+}
\ No newline at end of file
diff --git a/Modul2OOP/Inheritance/src/com/dicoding/javafundamental/inheritance/Mamalia.java b/Modul2OOP/Inheritance/src/com/dicoding/javafundamental/inheritance/Mamalia.java
new file mode 100644
index 0000000..c512336
--- /dev/null
+++ b/Modul2OOP/Inheritance/src/com/dicoding/javafundamental/inheritance/Mamalia.java
@@ -0,0 +1,4 @@
+package com.dicoding.javafundamental.inheritance;
+
+public interface Mamalia {
+}
diff --git a/Modul2OOP/Interface/.idea/misc.xml b/Modul2OOP/Interface/.idea/misc.xml
new file mode 100644
index 0000000..72cfda0
--- /dev/null
+++ b/Modul2OOP/Interface/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/Interface/.idea/modules.xml b/Modul2OOP/Interface/.idea/modules.xml
new file mode 100644
index 0000000..3de2989
--- /dev/null
+++ b/Modul2OOP/Interface/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/Interface/.idea/workspace.xml b/Modul2OOP/Interface/.idea/workspace.xml
new file mode 100644
index 0000000..b67bd1d
--- /dev/null
+++ b/Modul2OOP/Interface/.idea/workspace.xml
@@ -0,0 +1,132 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1563766547936
+
+
+ 1563766547936
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/Interface/Interface.iml b/Modul2OOP/Interface/Interface.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/Modul2OOP/Interface/Interface.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/Interface/src/com/dicoding/javafundamental/oop/Hewan.java b/Modul2OOP/Interface/src/com/dicoding/javafundamental/oop/Hewan.java
new file mode 100644
index 0000000..2b22598
--- /dev/null
+++ b/Modul2OOP/Interface/src/com/dicoding/javafundamental/oop/Hewan.java
@@ -0,0 +1,7 @@
+package com.dicoding.javafundamental.oop;
+
+public interface Hewan {
+ String RESPIRASI = "oksigen";
+
+ void makan();
+}
diff --git a/Modul2OOP/InterfaceImplement/.idea/misc.xml b/Modul2OOP/InterfaceImplement/.idea/misc.xml
new file mode 100644
index 0000000..72cfda0
--- /dev/null
+++ b/Modul2OOP/InterfaceImplement/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/InterfaceImplement/.idea/modules.xml b/Modul2OOP/InterfaceImplement/.idea/modules.xml
new file mode 100644
index 0000000..9100a50
--- /dev/null
+++ b/Modul2OOP/InterfaceImplement/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/InterfaceImplement/.idea/workspace.xml b/Modul2OOP/InterfaceImplement/.idea/workspace.xml
new file mode 100644
index 0000000..7d9c271
--- /dev/null
+++ b/Modul2OOP/InterfaceImplement/.idea/workspace.xml
@@ -0,0 +1,161 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1563767297064
+
+
+ 1563767297064
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/InterfaceImplement/InterfaceImplement.iml b/Modul2OOP/InterfaceImplement/InterfaceImplement.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/Modul2OOP/InterfaceImplement/InterfaceImplement.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/InterfaceImplement/src/com/dicoding/javafundamental/oop/Hewan.java b/Modul2OOP/InterfaceImplement/src/com/dicoding/javafundamental/oop/Hewan.java
new file mode 100644
index 0000000..2b22598
--- /dev/null
+++ b/Modul2OOP/InterfaceImplement/src/com/dicoding/javafundamental/oop/Hewan.java
@@ -0,0 +1,7 @@
+package com.dicoding.javafundamental.oop;
+
+public interface Hewan {
+ String RESPIRASI = "oksigen";
+
+ void makan();
+}
diff --git a/Modul2OOP/InterfaceImplement/src/com/dicoding/javafundamental/oop/Kucing.java b/Modul2OOP/InterfaceImplement/src/com/dicoding/javafundamental/oop/Kucing.java
new file mode 100644
index 0000000..08c9d58
--- /dev/null
+++ b/Modul2OOP/InterfaceImplement/src/com/dicoding/javafundamental/oop/Kucing.java
@@ -0,0 +1,8 @@
+package com.dicoding.javafundamental.oop;
+
+public class Kucing implements Hewan {
+ @Override
+ public void makan() {
+
+ }
+}
diff --git a/Modul2OOP/Kelas/.idea/misc.xml b/Modul2OOP/Kelas/.idea/misc.xml
new file mode 100644
index 0000000..72cfda0
--- /dev/null
+++ b/Modul2OOP/Kelas/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/Kelas/.idea/modules.xml b/Modul2OOP/Kelas/.idea/modules.xml
new file mode 100644
index 0000000..a24c8a2
--- /dev/null
+++ b/Modul2OOP/Kelas/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/Kelas/.idea/workspace.xml b/Modul2OOP/Kelas/.idea/workspace.xml
new file mode 100644
index 0000000..77ad2e8
--- /dev/null
+++ b/Modul2OOP/Kelas/.idea/workspace.xml
@@ -0,0 +1,136 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1563354694503
+
+
+ 1563354694503
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/Kelas/Kelas.iml b/Modul2OOP/Kelas/Kelas.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/Modul2OOP/Kelas/Kelas.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/Kelas/src/com/dicoding/javafundamental/kelas/KucingAnggora.java b/Modul2OOP/Kelas/src/com/dicoding/javafundamental/kelas/KucingAnggora.java
new file mode 100644
index 0000000..94b8c1e
--- /dev/null
+++ b/Modul2OOP/Kelas/src/com/dicoding/javafundamental/kelas/KucingAnggora.java
@@ -0,0 +1,20 @@
+package com.dicoding.javafundamental.kelas;
+
+public class KucingAnggora {
+
+ String nama_kucing;
+ int berat_badan;
+
+ //ini adalah contoh no-argument constructor
+ public KucingAnggora() {
+
+ }
+
+ //ini adalah contoh parameterized constructor
+ //dengan memberikan nilai awal data member nama_kucing dan berat_badan
+ //dengan parameter yang kita tentukan
+ public KucingAnggora(String nama, int berat) {
+ namaKucing = nama;
+ beratBadan = berat;
+ }
+}
diff --git a/Modul2OOP/Obyek/.idea/misc.xml b/Modul2OOP/Obyek/.idea/misc.xml
new file mode 100644
index 0000000..72cfda0
--- /dev/null
+++ b/Modul2OOP/Obyek/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/Obyek/.idea/modules.xml b/Modul2OOP/Obyek/.idea/modules.xml
new file mode 100644
index 0000000..657ecda
--- /dev/null
+++ b/Modul2OOP/Obyek/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/Obyek/.idea/workspace.xml b/Modul2OOP/Obyek/.idea/workspace.xml
new file mode 100644
index 0000000..405dce6
--- /dev/null
+++ b/Modul2OOP/Obyek/.idea/workspace.xml
@@ -0,0 +1,213 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1563357472518
+
+
+ 1563357472518
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/Obyek/Obyek.iml b/Modul2OOP/Obyek/Obyek.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/Modul2OOP/Obyek/Obyek.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/Obyek/out/production/Obyek/com/dicoding/javafundamental/obyek/Hewan.class b/Modul2OOP/Obyek/out/production/Obyek/com/dicoding/javafundamental/obyek/Hewan.class
new file mode 100644
index 0000000..0b8b99d
Binary files /dev/null and b/Modul2OOP/Obyek/out/production/Obyek/com/dicoding/javafundamental/obyek/Hewan.class differ
diff --git a/Modul2OOP/Obyek/out/production/Obyek/com/dicoding/javafundamental/obyek/Main.class b/Modul2OOP/Obyek/out/production/Obyek/com/dicoding/javafundamental/obyek/Main.class
new file mode 100644
index 0000000..0374b22
Binary files /dev/null and b/Modul2OOP/Obyek/out/production/Obyek/com/dicoding/javafundamental/obyek/Main.class differ
diff --git a/Modul2OOP/Obyek/src/com/dicoding/javafundamental/obyek/Hewan.java b/Modul2OOP/Obyek/src/com/dicoding/javafundamental/obyek/Hewan.java
new file mode 100644
index 0000000..8b4c5d3
--- /dev/null
+++ b/Modul2OOP/Obyek/src/com/dicoding/javafundamental/obyek/Hewan.java
@@ -0,0 +1,26 @@
+package com.dicoding.javafundamental.obyek;
+
+public class Hewan {
+ String nama;
+ int berat;
+ int jumlahKaki;
+
+ // Ini merupakan konstruktor dari kelas hewan. konstruktor adalah method yang pertama kali dijalankan ketika object diciptakan.
+ public Hewan(String namaHewan) {
+ nama = namaHewan;
+ }
+
+ public void beratHewan(int beratHewan) {
+ berat = beratHewan;
+ }
+
+ public void jumlahKakiHewan(int jumlahKakiHewan) {
+ jumlahKaki = jumlahKakiHewan;
+ }
+
+ public void cetakHewan() {
+ System.out.println("Nama hewan : " + nama);
+ System.out.println("Berat hewan : " + berat + " kg");
+ System.out.println("Jumlah kaki: " + jumlahKaki);
+ }
+}
\ No newline at end of file
diff --git a/Modul2OOP/Obyek/src/com/dicoding/javafundamental/obyek/Main.java b/Modul2OOP/Obyek/src/com/dicoding/javafundamental/obyek/Main.java
new file mode 100644
index 0000000..1df73d6
--- /dev/null
+++ b/Modul2OOP/Obyek/src/com/dicoding/javafundamental/obyek/Main.java
@@ -0,0 +1,16 @@
+package com.dicoding.javafundamental.obyek;
+
+public class Main {
+ public static void main(String[] args) {
+ Hewan Elang = new Hewan("Elang");
+ Hewan Kucing = new Hewan("Kucing");
+
+ Elang.beratHewan(5);
+ Elang.jumlahKakiHewan(2);
+ Elang.cetakHewan();
+
+ Kucing.beratHewan(2);
+ Kucing.jumlahKakiHewan(4);
+ Kucing.cetakHewan();
+ }
+}
diff --git a/Modul2OOP/PropertiDanMetode/.idea/misc.xml b/Modul2OOP/PropertiDanMetode/.idea/misc.xml
new file mode 100644
index 0000000..72cfda0
--- /dev/null
+++ b/Modul2OOP/PropertiDanMetode/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/PropertiDanMetode/.idea/modules.xml b/Modul2OOP/PropertiDanMetode/.idea/modules.xml
new file mode 100644
index 0000000..045e41a
--- /dev/null
+++ b/Modul2OOP/PropertiDanMetode/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/PropertiDanMetode/.idea/workspace.xml b/Modul2OOP/PropertiDanMetode/.idea/workspace.xml
new file mode 100644
index 0000000..fb33945
--- /dev/null
+++ b/Modul2OOP/PropertiDanMetode/.idea/workspace.xml
@@ -0,0 +1,212 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1563419757830
+
+
+ 1563419757830
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/PropertiDanMetode/PropertiDanMetode.iml b/Modul2OOP/PropertiDanMetode/PropertiDanMetode.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/Modul2OOP/PropertiDanMetode/PropertiDanMetode.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul2OOP/PropertiDanMetode/out/production/PropertiDanMetode/com/dicoding/javafundamental/propertimetode/Hewan.class b/Modul2OOP/PropertiDanMetode/out/production/PropertiDanMetode/com/dicoding/javafundamental/propertimetode/Hewan.class
new file mode 100644
index 0000000..b335020
Binary files /dev/null and b/Modul2OOP/PropertiDanMetode/out/production/PropertiDanMetode/com/dicoding/javafundamental/propertimetode/Hewan.class differ
diff --git a/Modul2OOP/PropertiDanMetode/out/production/PropertiDanMetode/com/dicoding/javafundamental/propertimetode/Main.class b/Modul2OOP/PropertiDanMetode/out/production/PropertiDanMetode/com/dicoding/javafundamental/propertimetode/Main.class
new file mode 100644
index 0000000..e29f6da
Binary files /dev/null and b/Modul2OOP/PropertiDanMetode/out/production/PropertiDanMetode/com/dicoding/javafundamental/propertimetode/Main.class differ
diff --git a/Modul2OOP/PropertiDanMetode/src/com/dicoding/javafundamental/propertimetode/Hewan.java b/Modul2OOP/PropertiDanMetode/src/com/dicoding/javafundamental/propertimetode/Hewan.java
new file mode 100644
index 0000000..7dfb184
--- /dev/null
+++ b/Modul2OOP/PropertiDanMetode/src/com/dicoding/javafundamental/propertimetode/Hewan.java
@@ -0,0 +1,41 @@
+package com.dicoding.javafundamental.propertimetode;
+
+class Hewan{
+ // Properti atau fields
+
+ // Inisiasi dengan nilai inisial
+ double tinggi = 30;
+ double berat = 3;
+
+ // Inisiasi melalui konstruktor
+ int umur;
+
+ // Konstruktor dengan parameter
+ Hewan(int umur) {
+ this.umur = umur;
+ }
+
+ void lari() {
+ System.out.println("Berlari dengan sangat cepat..");
+ }
+
+ void jalan() {
+ System.out.println("Berjalan dengan pelan..");
+ }
+
+ void makan() {
+ System.out.println("Makan dengan menggunakan mulut..");
+ }
+
+ double getBerat() {
+ return berat;
+ }
+
+ double getTinggi() {
+ return tinggi;
+ }
+
+ int getUmur() {
+ return umur;
+ }
+}
\ No newline at end of file
diff --git a/Modul2OOP/PropertiDanMetode/src/com/dicoding/javafundamental/propertimetode/Main.java b/Modul2OOP/PropertiDanMetode/src/com/dicoding/javafundamental/propertimetode/Main.java
new file mode 100644
index 0000000..a73e999
--- /dev/null
+++ b/Modul2OOP/PropertiDanMetode/src/com/dicoding/javafundamental/propertimetode/Main.java
@@ -0,0 +1,21 @@
+package com.dicoding.javafundamental.propertimetode;
+
+public class Main {
+ public static void main(String[] args) {
+
+ // Kita tambahkan 1 argumen dengan nilai int 2
+ // Nilai tersebut adalah nilai yang digunakan untuk inisiasi variabel umur
+ Hewan kucing = new Hewan(2);
+ kucing.makan();
+ kucing.jalan();
+ kucing.lari();
+
+ // Contoh penggunaan fungsi getUmur
+ System.out.println("Umurnya adalah " + kucing.getUmur());
+
+ // Perhitungan indeks massa tubuh (BMI)
+ // berat(kg) / ( tinggi(m) * tinggi(m) )
+ double bmi = kucing.getBerat() / ((kucing.getTinggi() * 0.01) * (kucing.getTinggi() * 0.01));
+ System.out.println("Indeks massa tubuhnya adalah " + bmi);
+ }
+}
diff --git a/Modul3CommonClass/Collection/.idea/misc.xml b/Modul3CommonClass/Collection/.idea/misc.xml
new file mode 100644
index 0000000..72cfda0
--- /dev/null
+++ b/Modul3CommonClass/Collection/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul3CommonClass/Collection/.idea/modules.xml b/Modul3CommonClass/Collection/.idea/modules.xml
new file mode 100644
index 0000000..7f4fe01
--- /dev/null
+++ b/Modul3CommonClass/Collection/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul3CommonClass/Collection/.idea/workspace.xml b/Modul3CommonClass/Collection/.idea/workspace.xml
new file mode 100644
index 0000000..ccb5fe0
--- /dev/null
+++ b/Modul3CommonClass/Collection/.idea/workspace.xml
@@ -0,0 +1,308 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1563778640931
+
+
+ 1563778640931
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul3CommonClass/Collection/Collection.iml b/Modul3CommonClass/Collection/Collection.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/Modul3CommonClass/Collection/Collection.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul3CommonClass/Collection/out/production/Collection/com/dicoding/javafundamental/collection/ListPlanet.class b/Modul3CommonClass/Collection/out/production/Collection/com/dicoding/javafundamental/collection/ListPlanet.class
new file mode 100644
index 0000000..af7f3ac
Binary files /dev/null and b/Modul3CommonClass/Collection/out/production/Collection/com/dicoding/javafundamental/collection/ListPlanet.class differ
diff --git a/Modul3CommonClass/Collection/out/production/Collection/com/dicoding/javafundamental/collection/Main.class b/Modul3CommonClass/Collection/out/production/Collection/com/dicoding/javafundamental/collection/Main.class
new file mode 100644
index 0000000..80cdb5d
Binary files /dev/null and b/Modul3CommonClass/Collection/out/production/Collection/com/dicoding/javafundamental/collection/Main.class differ
diff --git a/Modul3CommonClass/Collection/out/production/Collection/com/dicoding/javafundamental/collection/MapPlanet.class b/Modul3CommonClass/Collection/out/production/Collection/com/dicoding/javafundamental/collection/MapPlanet.class
new file mode 100644
index 0000000..799c240
Binary files /dev/null and b/Modul3CommonClass/Collection/out/production/Collection/com/dicoding/javafundamental/collection/MapPlanet.class differ
diff --git a/Modul3CommonClass/Collection/out/production/Collection/com/dicoding/javafundamental/collection/Planet.class b/Modul3CommonClass/Collection/out/production/Collection/com/dicoding/javafundamental/collection/Planet.class
new file mode 100644
index 0000000..a88fc1a
Binary files /dev/null and b/Modul3CommonClass/Collection/out/production/Collection/com/dicoding/javafundamental/collection/Planet.class differ
diff --git a/Modul3CommonClass/Collection/out/production/Collection/com/dicoding/javafundamental/collection/SetPlanet.class b/Modul3CommonClass/Collection/out/production/Collection/com/dicoding/javafundamental/collection/SetPlanet.class
new file mode 100644
index 0000000..e16a159
Binary files /dev/null and b/Modul3CommonClass/Collection/out/production/Collection/com/dicoding/javafundamental/collection/SetPlanet.class differ
diff --git a/Modul3CommonClass/Collection/src/com/dicoding/javafundamental/collection/ListPlanet.java b/Modul3CommonClass/Collection/src/com/dicoding/javafundamental/collection/ListPlanet.java
new file mode 100644
index 0000000..fa0dae7
--- /dev/null
+++ b/Modul3CommonClass/Collection/src/com/dicoding/javafundamental/collection/ListPlanet.java
@@ -0,0 +1,35 @@
+package com.dicoding.javafundamental.collection;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class ListPlanet {
+
+ public static void main(String[] args) {
+ // deklarasi Array
+ String[] heroes = new String[2];
+ heroes[0] = "riki";
+ heroes[1] = "sven";
+ //heroes[2] = "zeus"; // error ArrayIndexOutOfBoundsException karena ukuran Array tetap
+
+ // menggunakan ArrayList
+ List planets = new ArrayList<>();
+ planets.add("mercury"); // method add() untuk menambahkan objek ke List
+ planets.add("venus");
+ planets.add("earth");
+ planets.add("mars"); // objek lainnya masih bisa terus ditambahkan ke List
+
+ System.out.println("List planets awal:");
+ for (int i = 0; i < planets.size(); i++) { // method size() untuk mendapatkan ukuran List
+ // method get() untuk melihat isi List pada index i
+ System.out.println("\t index-"+ i +" = " + planets.get(i));
+ }
+
+ planets.remove("venus"); // method remove() untuk mengeluarkan objek dari List
+
+ System.out.println("List planets akhir:");
+ for (int i = 0; i < planets.size(); i++) {
+ System.out.println("\t index-"+ i +" = " + planets.get(i));
+ }
+ }
+}
\ No newline at end of file
diff --git a/Modul3CommonClass/Collection/src/com/dicoding/javafundamental/collection/Main.java b/Modul3CommonClass/Collection/src/com/dicoding/javafundamental/collection/Main.java
new file mode 100644
index 0000000..d3301c7
--- /dev/null
+++ b/Modul3CommonClass/Collection/src/com/dicoding/javafundamental/collection/Main.java
@@ -0,0 +1,10 @@
+package com.dicoding.javafundamental.collection;
+
+import java.util.Collection;
+
+public class Main {
+
+ public static void main(String[] args) {
+ Collection collection;
+ }
+}
\ No newline at end of file
diff --git a/Modul3CommonClass/Collection/src/com/dicoding/javafundamental/collection/MapPlanet.java b/Modul3CommonClass/Collection/src/com/dicoding/javafundamental/collection/MapPlanet.java
new file mode 100644
index 0000000..2d8c5ef
--- /dev/null
+++ b/Modul3CommonClass/Collection/src/com/dicoding/javafundamental/collection/MapPlanet.java
@@ -0,0 +1,31 @@
+package com.dicoding.javafundamental.collection;
+
+import java.util.HashMap;
+import java.util.Map;
+
+public class MapPlanet{
+
+ public static void main(String[] args) {
+ // menggunakan HashMap
+ Map planets = new HashMap();
+ planets.put("key-1", new Planet("Mercury", 0.06)); // method put() untuk menambahkan objek ke Map
+ planets.put("key-2", new Planet("Venus", 0.82));
+ planets.put("key-3", new Planet("Earth", 1.00));
+ planets.put("key-4", new Planet("Mars", 0.11));
+ planets.put("key-4", new Planet("Mars-X", 0.11)); // menambahkan ke Map dengan key yang sama
+
+ // method size() untuk mendapatkan ukuran Set
+ System.out.println("Map planets awal: (size = "+ planets.size() +")");
+ for (String key : planets.keySet()) { // looping key dari Map
+ // method get() untuk melihat isi Map berdasarkan key
+ System.out.println("\t " + key + " : " + planets.get(key));
+ }
+
+ planets.remove("key-2"); // method remove() untuk mengeluarkan objek dari Map
+
+ System.out.println("Map planets akhir: (size = "+ planets.size() +")");
+ for (Planet planet : planets.values()) { // looping value dari Map
+ System.out.println("\t " + planet);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Modul3CommonClass/Collection/src/com/dicoding/javafundamental/collection/Planet.java b/Modul3CommonClass/Collection/src/com/dicoding/javafundamental/collection/Planet.java
new file mode 100644
index 0000000..7b845ae
--- /dev/null
+++ b/Modul3CommonClass/Collection/src/com/dicoding/javafundamental/collection/Planet.java
@@ -0,0 +1,16 @@
+package com.dicoding.javafundamental.collection;
+
+class Planet {
+ private String name;
+ private double mass;
+
+ public Planet(String name, double mass) {
+ this.name = name;
+ this.mass = mass;
+ }
+
+ @Override
+ public String toString() {
+ return "Planet " + name + ", mass: " + mass;
+ }
+}
\ No newline at end of file
diff --git a/Modul3CommonClass/Collection/src/com/dicoding/javafundamental/collection/SetPlanet.java b/Modul3CommonClass/Collection/src/com/dicoding/javafundamental/collection/SetPlanet.java
new file mode 100644
index 0000000..693778d
--- /dev/null
+++ b/Modul3CommonClass/Collection/src/com/dicoding/javafundamental/collection/SetPlanet.java
@@ -0,0 +1,31 @@
+package com.dicoding.javafundamental.collection;
+
+import java.util.*;
+
+public class SetPlanet {
+
+ public static void main(String[] args) {
+ // menggunakan HashSet
+ Set planets = new HashSet<>();
+ planets.add("mercury"); // method add() untuk menambahkan objek ke Set
+ planets.add("venus");
+ planets.add("earth");
+ planets.add("earth"); // menambahkan objek "earth" beberapa kali
+ planets.add("earth");
+ planets.add("mars"); // objek bisa terus ditambahkan ke Set
+
+ // method size() untuk mendapatkan ukuran Set
+ System.out.println("Set planets awal: (size = " + planets.size() + ")");
+ for (String planet : planets) {
+ System.out.println("\t " + planet);
+ }
+
+ planets.remove("venus"); // method remove() untuk mengeluarkan objek dari Set
+
+ System.out.println("Set planets akhir: (size = " + planets.size() + ")");
+ for (Iterator iterator = planets.iterator(); iterator.hasNext(); ) {
+ // looping menggunakan Iterator
+ System.out.println("\t " + iterator.next());
+ }
+ }
+}
\ No newline at end of file
diff --git a/Modul3CommonClass/Datetime/.idea/misc.xml b/Modul3CommonClass/Datetime/.idea/misc.xml
new file mode 100644
index 0000000..72cfda0
--- /dev/null
+++ b/Modul3CommonClass/Datetime/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul3CommonClass/Datetime/.idea/modules.xml b/Modul3CommonClass/Datetime/.idea/modules.xml
new file mode 100644
index 0000000..4a2c094
--- /dev/null
+++ b/Modul3CommonClass/Datetime/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul3CommonClass/Datetime/.idea/workspace.xml b/Modul3CommonClass/Datetime/.idea/workspace.xml
new file mode 100644
index 0000000..a4a09e3
--- /dev/null
+++ b/Modul3CommonClass/Datetime/.idea/workspace.xml
@@ -0,0 +1,303 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1563792014253
+
+
+ 1563792014253
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul3CommonClass/Datetime/Datetime.iml b/Modul3CommonClass/Datetime/Datetime.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/Modul3CommonClass/Datetime/Datetime.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul3CommonClass/Datetime/out/production/Datetime/com/dicoding/javafundamental/datetime/ExampleCalendar.class b/Modul3CommonClass/Datetime/out/production/Datetime/com/dicoding/javafundamental/datetime/ExampleCalendar.class
new file mode 100644
index 0000000..0d2d92f
Binary files /dev/null and b/Modul3CommonClass/Datetime/out/production/Datetime/com/dicoding/javafundamental/datetime/ExampleCalendar.class differ
diff --git a/Modul3CommonClass/Datetime/out/production/Datetime/com/dicoding/javafundamental/datetime/ExampleDate.class b/Modul3CommonClass/Datetime/out/production/Datetime/com/dicoding/javafundamental/datetime/ExampleDate.class
new file mode 100644
index 0000000..14a36d3
Binary files /dev/null and b/Modul3CommonClass/Datetime/out/production/Datetime/com/dicoding/javafundamental/datetime/ExampleDate.class differ
diff --git a/Modul3CommonClass/Datetime/out/production/Datetime/com/dicoding/javafundamental/datetime/ExampleSimpleDateFormat.class b/Modul3CommonClass/Datetime/out/production/Datetime/com/dicoding/javafundamental/datetime/ExampleSimpleDateFormat.class
new file mode 100644
index 0000000..e4d82a3
Binary files /dev/null and b/Modul3CommonClass/Datetime/out/production/Datetime/com/dicoding/javafundamental/datetime/ExampleSimpleDateFormat.class differ
diff --git a/Modul3CommonClass/Datetime/out/production/Datetime/com/dicoding/javafundamental/datetime/ExampleSpecificCalendar.class b/Modul3CommonClass/Datetime/out/production/Datetime/com/dicoding/javafundamental/datetime/ExampleSpecificCalendar.class
new file mode 100644
index 0000000..4785398
Binary files /dev/null and b/Modul3CommonClass/Datetime/out/production/Datetime/com/dicoding/javafundamental/datetime/ExampleSpecificCalendar.class differ
diff --git a/Modul3CommonClass/Datetime/out/production/Datetime/com/dicoding/javafundamental/datetime/ExampleSplitCalendar.class b/Modul3CommonClass/Datetime/out/production/Datetime/com/dicoding/javafundamental/datetime/ExampleSplitCalendar.class
new file mode 100644
index 0000000..f16e17a
Binary files /dev/null and b/Modul3CommonClass/Datetime/out/production/Datetime/com/dicoding/javafundamental/datetime/ExampleSplitCalendar.class differ
diff --git a/Modul3CommonClass/Datetime/out/production/Datetime/com/dicoding/javafundamental/datetime/ExampleSystemCurrentMilis.class b/Modul3CommonClass/Datetime/out/production/Datetime/com/dicoding/javafundamental/datetime/ExampleSystemCurrentMilis.class
new file mode 100644
index 0000000..6c16f4f
Binary files /dev/null and b/Modul3CommonClass/Datetime/out/production/Datetime/com/dicoding/javafundamental/datetime/ExampleSystemCurrentMilis.class differ
diff --git a/Modul3CommonClass/Datetime/src/com/dicoding/javafundamental/datetime/ExampleCalendar.java b/Modul3CommonClass/Datetime/src/com/dicoding/javafundamental/datetime/ExampleCalendar.java
new file mode 100644
index 0000000..25e48eb
--- /dev/null
+++ b/Modul3CommonClass/Datetime/src/com/dicoding/javafundamental/datetime/ExampleCalendar.java
@@ -0,0 +1,12 @@
+package com.dicoding.javafundamental.datetime;
+
+import java.util.Calendar;
+
+public class ExampleCalendar {
+ public static void main(String[] args) {
+
+ // Menampilkan waktu sekarang
+ Calendar calendar = Calendar.getInstance();
+ System.out.println("Waktu sekarang adalah " + calendar.getTime());
+ }
+}
\ No newline at end of file
diff --git a/Modul3CommonClass/Datetime/src/com/dicoding/javafundamental/datetime/ExampleDate.java b/Modul3CommonClass/Datetime/src/com/dicoding/javafundamental/datetime/ExampleDate.java
new file mode 100644
index 0000000..fefb063
--- /dev/null
+++ b/Modul3CommonClass/Datetime/src/com/dicoding/javafundamental/datetime/ExampleDate.java
@@ -0,0 +1,11 @@
+package com.dicoding.javafundamental.datetime;
+
+import java.util.Date;
+
+public class ExampleDate {
+ public static void main(String[] args) {
+ Date date = new Date();
+ System.out.println("Tanggal sekarang adalah " + date.toString());
+
+ }
+}
\ No newline at end of file
diff --git a/Modul3CommonClass/Datetime/src/com/dicoding/javafundamental/datetime/ExampleSimpleDateFormat.java b/Modul3CommonClass/Datetime/src/com/dicoding/javafundamental/datetime/ExampleSimpleDateFormat.java
new file mode 100644
index 0000000..72805c3
--- /dev/null
+++ b/Modul3CommonClass/Datetime/src/com/dicoding/javafundamental/datetime/ExampleSimpleDateFormat.java
@@ -0,0 +1,14 @@
+package com.dicoding.javafundamental.datetime;
+
+import java.text.SimpleDateFormat;
+import java.util.Date;
+
+public class ExampleSimpleDateFormat {
+ public static void main(String[] args) {
+
+ SimpleDateFormat sdf = new SimpleDateFormat("dd/M/yyyy");
+ String dateFormated = sdf.format(new Date());
+ System.out.println("Format tanggal default : " + new Date());
+ System.out.println("Format tanggal dengan format : " + dateFormated);
+ }
+}
diff --git a/Modul3CommonClass/Datetime/src/com/dicoding/javafundamental/datetime/ExampleSpecificCalendar.java b/Modul3CommonClass/Datetime/src/com/dicoding/javafundamental/datetime/ExampleSpecificCalendar.java
new file mode 100644
index 0000000..ff4e6f0
--- /dev/null
+++ b/Modul3CommonClass/Datetime/src/com/dicoding/javafundamental/datetime/ExampleSpecificCalendar.java
@@ -0,0 +1,24 @@
+package com.dicoding.javafundamental.datetime;
+
+import java.util.Calendar;
+
+public class ExampleSpecificCalendar {
+ public static void main(String[] args) {
+
+ // Menampilkan waktu sekarang
+ Calendar calendar = Calendar.getInstance();
+ System.out.println("Waktu sekarang adalah " + calendar.getTime());
+
+ // Menampilkan waktu 15 hari yang lalu
+ calendar.add(Calendar.DATE, -15);
+ System.out.println("15 hari yang lalu: " + calendar.getTime());
+
+ // Menampilkan waktu 4 bulan yang akan datang
+ calendar.add(Calendar.MONTH, 4);
+ System.out.println("4 bulan kemudian: " + calendar.getTime());
+
+ // Menampilkan waktu 2 tahun yang akan datang
+ calendar.add(Calendar.YEAR, 2);
+ System.out.println("2 tahun kemudian: " + calendar.getTime());
+ }
+}
\ No newline at end of file
diff --git a/Modul3CommonClass/Datetime/src/com/dicoding/javafundamental/datetime/ExampleSplitCalendar.java b/Modul3CommonClass/Datetime/src/com/dicoding/javafundamental/datetime/ExampleSplitCalendar.java
new file mode 100644
index 0000000..1acf7c3
--- /dev/null
+++ b/Modul3CommonClass/Datetime/src/com/dicoding/javafundamental/datetime/ExampleSplitCalendar.java
@@ -0,0 +1,15 @@
+package com.dicoding.javafundamental.datetime;
+
+import java.util.Calendar;
+
+public class ExampleSplitCalendar {
+ public static void main(String[] args) {
+ // Menampilkan waktu sekarang
+ Calendar calendar = Calendar.getInstance();
+ System.out.println("Waktu sekarang adalah " + calendar.getTime());
+ // menampilkan spesifik waktu yang diinginkan
+ System.out.println("Tanggal : " + calendar.get(Calendar.DATE));
+ System.out.println("Bulan : " + calendar.get(Calendar.MONTH));
+ System.out.println("Tahun : " + calendar.get(Calendar.YEAR));
+ }
+}
diff --git a/Modul3CommonClass/Datetime/src/com/dicoding/javafundamental/datetime/ExampleSystemCurrentMilis.java b/Modul3CommonClass/Datetime/src/com/dicoding/javafundamental/datetime/ExampleSystemCurrentMilis.java
new file mode 100644
index 0000000..531059b
--- /dev/null
+++ b/Modul3CommonClass/Datetime/src/com/dicoding/javafundamental/datetime/ExampleSystemCurrentMilis.java
@@ -0,0 +1,9 @@
+package com.dicoding.javafundamental.datetime;
+
+public class ExampleSystemCurrentMilis {
+ public static void main(String[] args) {
+ long timeNow = System.currentTimeMillis();
+
+ System.out.println("Waktu sekarang adalah " + timeNow + " milisecond");
+ }
+}
diff --git a/Modul3CommonClass/Exception/.idea/misc.xml b/Modul3CommonClass/Exception/.idea/misc.xml
new file mode 100644
index 0000000..72cfda0
--- /dev/null
+++ b/Modul3CommonClass/Exception/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul3CommonClass/Exception/.idea/modules.xml b/Modul3CommonClass/Exception/.idea/modules.xml
new file mode 100644
index 0000000..afebed8
--- /dev/null
+++ b/Modul3CommonClass/Exception/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul3CommonClass/Exception/.idea/workspace.xml b/Modul3CommonClass/Exception/.idea/workspace.xml
new file mode 100644
index 0000000..7068caf
--- /dev/null
+++ b/Modul3CommonClass/Exception/.idea/workspace.xml
@@ -0,0 +1,165 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1563782587411
+
+
+ 1563782587411
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul3CommonClass/Exception/Exception.iml b/Modul3CommonClass/Exception/Exception.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/Modul3CommonClass/Exception/Exception.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul3CommonClass/Exception/out/production/Exception/com/dicoding/javafundamental/exception/Main.class b/Modul3CommonClass/Exception/out/production/Exception/com/dicoding/javafundamental/exception/Main.class
new file mode 100644
index 0000000..d53974a
Binary files /dev/null and b/Modul3CommonClass/Exception/out/production/Exception/com/dicoding/javafundamental/exception/Main.class differ
diff --git a/Modul3CommonClass/Exception/src/com/dicoding/javafundamental/exception/Main.java b/Modul3CommonClass/Exception/src/com/dicoding/javafundamental/exception/Main.java
new file mode 100644
index 0000000..4a93914
--- /dev/null
+++ b/Modul3CommonClass/Exception/src/com/dicoding/javafundamental/exception/Main.java
@@ -0,0 +1,16 @@
+package com.dicoding.javafundamental.exception;
+
+public class Main {
+ public static void main(String[] args) {
+
+ int[] a = new int[5];
+ try {
+ System.out.println("Akses elemen ke 5 :" + a[5]);
+ } catch (ArrayIndexOutOfBoundsException e) {
+ System.out.println("Exception thrown :" + e);
+ } finally {
+ a[4] = 10;
+ System.out.println("Nilai elemen terakhir: " + a[4]);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Modul3CommonClass/Generics/.idea/misc.xml b/Modul3CommonClass/Generics/.idea/misc.xml
new file mode 100644
index 0000000..72cfda0
--- /dev/null
+++ b/Modul3CommonClass/Generics/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul3CommonClass/Generics/.idea/modules.xml b/Modul3CommonClass/Generics/.idea/modules.xml
new file mode 100644
index 0000000..4ed08d6
--- /dev/null
+++ b/Modul3CommonClass/Generics/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul3CommonClass/Generics/.idea/workspace.xml b/Modul3CommonClass/Generics/.idea/workspace.xml
new file mode 100644
index 0000000..875ab4b
--- /dev/null
+++ b/Modul3CommonClass/Generics/.idea/workspace.xml
@@ -0,0 +1,265 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1563780385527
+
+
+ 1563780385527
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul3CommonClass/Generics/Generics.iml b/Modul3CommonClass/Generics/Generics.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/Modul3CommonClass/Generics/Generics.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Modul3CommonClass/Generics/out/production/Generics/com/dicoding/javafundamental/generics/Main.class b/Modul3CommonClass/Generics/out/production/Generics/com/dicoding/javafundamental/generics/Main.class
new file mode 100644
index 0000000..9b4b2fc
Binary files /dev/null and b/Modul3CommonClass/Generics/out/production/Generics/com/dicoding/javafundamental/generics/Main.class differ
diff --git a/Modul3CommonClass/Generics/out/production/Generics/com/dicoding/javafundamental/generics/Planet.class b/Modul3CommonClass/Generics/out/production/Generics/com/dicoding/javafundamental/generics/Planet.class
new file mode 100644
index 0000000..83b2951
Binary files /dev/null and b/Modul3CommonClass/Generics/out/production/Generics/com/dicoding/javafundamental/generics/Planet.class differ
diff --git a/Modul3CommonClass/Generics/src/com/dicoding/javafundamental/generics/GenericsMethod.java b/Modul3CommonClass/Generics/src/com/dicoding/javafundamental/generics/GenericsMethod.java
new file mode 100644
index 0000000..5864aa4
--- /dev/null
+++ b/Modul3CommonClass/Generics/src/com/dicoding/javafundamental/generics/GenericsMethod.java
@@ -0,0 +1,50 @@
+package com.dicoding.javafundamental.generics;
+
+import java.util.ArrayList;
+import java.util.Collection;
+
+public class GenericsMethod {
+
+ private static void arrayToCollection(T[] a, Collection c) {
+ for (T o : a) {
+ c.add(o); // baris ini valid
+ }
+ }
+
+ public static void main(String[] args) {
+ Object[] oa = new Object[100];
+ Collection