diff --git a/.DS_Store b/.DS_Store
new file mode 100644
index 0000000..7c60de8
Binary files /dev/null and b/.DS_Store differ
diff --git a/.idea/10 - Rotate Array.iml b/.idea/10 - Rotate Array.iml
new file mode 100644
index 0000000..2eb246a
--- /dev/null
+++ b/.idea/10 - Rotate Array.iml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
new file mode 100644
index 0000000..65b277e
--- /dev/null
+++ b/.idea/compiler.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
new file mode 100644
index 0000000..b26911b
--- /dev/null
+++ b/.idea/encodings.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__junit_junit_3_8_1.xml b/.idea/libraries/Maven__junit_junit_3_8_1.xml
new file mode 100644
index 0000000..71b2993
--- /dev/null
+++ b/.idea/libraries/Maven__junit_junit_3_8_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..9896aeb
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..00579a1
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
new file mode 100644
index 0000000..e42c5b0
--- /dev/null
+++ b/.idea/workspace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+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Practice.iml b/Practice.iml
new file mode 100644
index 0000000..2eb246a
--- /dev/null
+++ b/Practice.iml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..9eca945
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,25 @@
+
+ 4.0.0
+
+ lindaqiu.io
+ Rotate Array
+ 1.0-SNAPSHOT
+ jar
+
+ practice
+ http://maven.apache.org
+
+
+ UTF-8
+
+
+
+
+ junit
+ junit
+ 3.8.1
+ test
+
+
+
diff --git a/src/main/java/lindaqiu/io/RotateArrayPractice.java b/src/main/java/lindaqiu/io/RotateArrayPractice.java
new file mode 100644
index 0000000..a9abb40
--- /dev/null
+++ b/src/main/java/lindaqiu/io/RotateArrayPractice.java
@@ -0,0 +1,26 @@
+package lindaqiu.io;
+
+import java.util.Arrays;
+
+public class RotateArrayPractice {
+
+//[1,2,3,4,5,6] rotated by two becomes [3,4,5,6,1,2]
+
+ public static void main(String[] args) {
+ RotateArrayPractice rotateRotate = new RotateArrayPractice();
+ System.out.println(Arrays.toString(rotateRotate.shiftElements(new int[]{1,2,3,4,5,6}, 2)));
+ }
+
+ public static int[] shiftElements(int[] array, int shiftAmount) {
+
+ for (int j = 0; j < shiftAmount; j++) {
+ int a = array[0];
+ int i;
+ for (i = 0; i < array.length - 1; i++)
+ array[i] = array[i + 1];
+ array[i] = a;
+ }
+
+ return array;
+ }
+}
\ No newline at end of file
diff --git a/target/classes/lindaqiu/io/App.class b/target/classes/lindaqiu/io/App.class
new file mode 100644
index 0000000..803df4a
Binary files /dev/null and b/target/classes/lindaqiu/io/App.class differ
diff --git a/target/classes/lindaqiu/io/Distance.class b/target/classes/lindaqiu/io/Distance.class
new file mode 100644
index 0000000..9d51809
Binary files /dev/null and b/target/classes/lindaqiu/io/Distance.class differ
diff --git a/target/classes/lindaqiu/io/PhraseOMatic.class b/target/classes/lindaqiu/io/PhraseOMatic.class
new file mode 100644
index 0000000..1093c2b
Binary files /dev/null and b/target/classes/lindaqiu/io/PhraseOMatic.class differ
diff --git a/target/classes/lindaqiu/io/PracticeArrays.class b/target/classes/lindaqiu/io/PracticeArrays.class
new file mode 100644
index 0000000..c8a091a
Binary files /dev/null and b/target/classes/lindaqiu/io/PracticeArrays.class differ
diff --git a/target/classes/lindaqiu/io/PracticePractice.class b/target/classes/lindaqiu/io/PracticePractice.class
new file mode 100644
index 0000000..afc114e
Binary files /dev/null and b/target/classes/lindaqiu/io/PracticePractice.class differ
diff --git a/target/classes/lindaqiu/io/RotateArrayPractice.class b/target/classes/lindaqiu/io/RotateArrayPractice.class
new file mode 100644
index 0000000..f7998b1
Binary files /dev/null and b/target/classes/lindaqiu/io/RotateArrayPractice.class differ