Leon 6 gadus atpakaļ
vecāks
revīzija
8c82c11eff

+ 17
- 16
.idea/workspace.xml Parādīt failu

2
 <project version="4">
2
 <project version="4">
3
   <component name="ChangeListManager">
3
   <component name="ChangeListManager">
4
     <list default="true" id="26a7a849-f4eb-45bc-b369-629e74725b9d" name="Default" comment="">
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
     </list>
7
     </list>
7
     <ignored path="$PROJECT_DIR$/target/" />
8
     <ignored path="$PROJECT_DIR$/target/" />
8
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
9
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
28
           </provider>
29
           </provider>
29
         </entry>
30
         </entry>
30
       </file>
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
         <entry file="file://$PROJECT_DIR$/.gitignore">
33
         <entry file="file://$PROJECT_DIR$/.gitignore">
33
           <provider selected="true" editor-type-id="text-editor">
34
           <provider selected="true" editor-type-id="text-editor">
34
             <state relative-caret-position="60">
35
             <state relative-caret-position="60">
38
           </provider>
39
           </provider>
39
         </entry>
40
         </entry>
40
       </file>
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
         <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodewilmington/danny_do_better_exercises/StringUtilities.java">
43
         <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodewilmington/danny_do_better_exercises/StringUtilities.java">
43
           <provider selected="true" editor-type-id="text-editor">
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
               <folding />
47
               <folding />
47
             </state>
48
             </state>
48
           </provider>
49
           </provider>
101
       <file leaf-file-name="TestStringUtilities.java" pinned="false" current-in-tab="false">
102
       <file leaf-file-name="TestStringUtilities.java" pinned="false" current-in-tab="false">
102
         <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodewilmington/danny_do_better_exercises/TestStringUtilities.java">
103
         <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodewilmington/danny_do_better_exercises/TestStringUtilities.java">
103
           <provider selected="true" editor-type-id="text-editor">
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
               <folding />
107
               <folding />
107
             </state>
108
             </state>
108
           </provider>
109
           </provider>
942
         </state>
943
         </state>
943
       </provider>
944
       </provider>
944
     </entry>
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
       <provider selected="true" editor-type-id="text-editor">
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
           <folding />
950
           <folding />
950
         </state>
951
         </state>
951
       </provider>
952
       </provider>
952
     </entry>
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
       <provider selected="true" editor-type-id="text-editor">
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
           <folding />
958
           <folding />
958
         </state>
959
         </state>
959
       </provider>
960
       </provider>
960
     </entry>
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
       <provider selected="true" editor-type-id="text-editor">
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
           <folding />
966
           <folding />
966
         </state>
967
         </state>
967
       </provider>
968
       </provider>

+ 6
- 2
README.md Parādīt failu

82
 	* `String concatenation(int, String)`
82
 	* `String concatenation(int, String)`
83
 	* `String getPrefix(String)`
83
 	* `String getPrefix(String)`
84
 	* `String getSuffix(String)`
84
 	* `String getSuffix(String)`
85
-	* `String compareTwoStrings(String)`
85
+	* `Boolean compareTwoStrings(String)`
86
 	* `Character getMiddleCharacter(String)`
86
 	* `Character getMiddleCharacter(String)`
87
 	* `String getFirstWord(String)`
87
 	* `String getFirstWord(String)`
88
 	* `String getSecondWord(String)`
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 Parādīt failu

82
      * @param stringToReverse
82
      * @param stringToReverse
83
      * @return an identical string with characters in reverse order.
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
         return null;
86
         return null;
87
     }
87
     }
88
 }
88
 }

+ 1
- 1
src/test/java/com/zipcodewilmington/danny_do_better_exercises/TestStringUtilities.java Parādīt failu

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