Leon 6 лет назад
Родитель
Сommit
8c82c11eff

+ 17
- 16
.idea/workspace.xml Просмотреть файл

@@ -2,7 +2,8 @@
2 2
 <project version="4">
3 3
   <component name="ChangeListManager">
4 4
     <list default="true" id="26a7a849-f4eb-45bc-b369-629e74725b9d" name="Default" comment="">
5
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.gitignore" afterPath="$PROJECT_DIR$/.gitignore" />
5
+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
6
+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/README.md" afterPath="$PROJECT_DIR$/README.md" />
6 7
     </list>
7 8
     <ignored path="$PROJECT_DIR$/target/" />
8 9
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
@@ -28,7 +29,7 @@
28 29
           </provider>
29 30
         </entry>
30 31
       </file>
31
-      <file leaf-file-name=".gitignore" pinned="false" current-in-tab="true">
32
+      <file leaf-file-name=".gitignore" pinned="false" current-in-tab="false">
32 33
         <entry file="file://$PROJECT_DIR$/.gitignore">
33 34
           <provider selected="true" editor-type-id="text-editor">
34 35
             <state relative-caret-position="60">
@@ -38,11 +39,11 @@
38 39
           </provider>
39 40
         </entry>
40 41
       </file>
41
-      <file leaf-file-name="StringUtilities.java" pinned="false" current-in-tab="false">
42
+      <file leaf-file-name="StringUtilities.java" pinned="false" current-in-tab="true">
42 43
         <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodewilmington/danny_do_better_exercises/StringUtilities.java">
43 44
           <provider selected="true" editor-type-id="text-editor">
44
-            <state relative-caret-position="237">
45
-              <caret line="61" column="19" lean-forward="false" selection-start-line="61" selection-start-column="19" selection-end-line="61" selection-end-column="19" />
45
+            <state relative-caret-position="397">
46
+              <caret line="84" column="25" lean-forward="false" selection-start-line="84" selection-start-column="25" selection-end-line="84" selection-end-column="25" />
46 47
               <folding />
47 48
             </state>
48 49
           </provider>
@@ -101,8 +102,8 @@
101 102
       <file leaf-file-name="TestStringUtilities.java" pinned="false" current-in-tab="false">
102 103
         <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodewilmington/danny_do_better_exercises/TestStringUtilities.java">
103 104
           <provider selected="true" editor-type-id="text-editor">
104
-            <state relative-caret-position="114">
105
-              <caret line="114" column="48" lean-forward="true" selection-start-line="114" selection-start-column="48" selection-end-line="114" selection-end-column="48" />
105
+            <state relative-caret-position="367">
106
+              <caret line="170" column="48" lean-forward="true" selection-start-line="170" selection-start-column="48" selection-end-line="170" selection-end-column="48" />
106 107
               <folding />
107 108
             </state>
108 109
           </provider>
@@ -942,26 +943,26 @@
942 943
         </state>
943 944
       </provider>
944 945
     </entry>
945
-    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodewilmington/danny_do_better_exercises/TestStringUtilities.java">
946
+    <entry file="file://$PROJECT_DIR$/.gitignore">
946 947
       <provider selected="true" editor-type-id="text-editor">
947
-        <state relative-caret-position="114">
948
-          <caret line="114" column="48" lean-forward="true" selection-start-line="114" selection-start-column="48" selection-end-line="114" selection-end-column="48" />
948
+        <state relative-caret-position="60">
949
+          <caret line="4" column="9" lean-forward="false" selection-start-line="4" selection-start-column="9" selection-end-line="4" selection-end-column="9" />
949 950
           <folding />
950 951
         </state>
951 952
       </provider>
952 953
     </entry>
953
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodewilmington/danny_do_better_exercises/StringUtilities.java">
954
+    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodewilmington/danny_do_better_exercises/TestStringUtilities.java">
954 955
       <provider selected="true" editor-type-id="text-editor">
955
-        <state relative-caret-position="237">
956
-          <caret line="61" column="19" lean-forward="false" selection-start-line="61" selection-start-column="19" selection-end-line="61" selection-end-column="19" />
956
+        <state relative-caret-position="367">
957
+          <caret line="170" column="48" lean-forward="true" selection-start-line="170" selection-start-column="48" selection-end-line="170" selection-end-column="48" />
957 958
           <folding />
958 959
         </state>
959 960
       </provider>
960 961
     </entry>
961
-    <entry file="file://$PROJECT_DIR$/.gitignore">
962
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodewilmington/danny_do_better_exercises/StringUtilities.java">
962 963
       <provider selected="true" editor-type-id="text-editor">
963
-        <state relative-caret-position="60">
964
-          <caret line="4" column="9" lean-forward="false" selection-start-line="4" selection-start-column="9" selection-end-line="4" selection-end-column="9" />
964
+        <state relative-caret-position="397">
965
+          <caret line="84" column="25" lean-forward="false" selection-start-line="84" selection-start-column="25" selection-end-line="84" selection-end-column="25" />
965 966
           <folding />
966 967
         </state>
967 968
       </provider>

+ 6
- 2
README.md Просмотреть файл

@@ -82,8 +82,12 @@
82 82
 	* `String concatenation(int, String)`
83 83
 	* `String getPrefix(String)`
84 84
 	* `String getSuffix(String)`
85
-	* `String compareTwoStrings(String)`
85
+	* `Boolean compareTwoStrings(String)`
86 86
 	* `Character getMiddleCharacter(String)`
87 87
 	* `String getFirstWord(String)`
88 88
 	* `String getSecondWord(String)`
89
-	* `String reverseTheTwo(String)`
89
+	* `String reverseTheTwo(String)`
90
+	
91
+	
92
+## Whats next?
93
+* The next lab can be found [here](https://github.com/Zipcoder/ZCW-MicroLabs-OOP-AliceAndBob).

+ 1
- 1
src/main/java/com/zipcodewilmington/danny_do_better_exercises/StringUtilities.java Просмотреть файл

@@ -82,7 +82,7 @@ public class StringUtilities {
82 82
      * @param stringToReverse
83 83
      * @return an identical string with characters in reverse order.
84 84
      */
85
-    public static String reverseTheTwo(String stringToReverse){
85
+    public static String reverse(String stringToReverse){
86 86
         return null;
87 87
     }
88 88
 }

+ 1
- 1
src/test/java/com/zipcodewilmington/danny_do_better_exercises/TestStringUtilities.java Просмотреть файл

@@ -168,7 +168,7 @@ public class TestStringUtilities {
168 168
 
169 169
 
170 170
         // : When
171
-        String actual = StringUtilities.reverseTheTwo(input);
171
+        String actual = StringUtilities.reverse(input);
172 172
 
173 173
         // : Then
174 174
         assertEquals(expected, actual);