|
|
|
|
1
|
# TableUtilities
|
1
|
# TableUtilities
|
2
|
-* Ensure each of the test cases in the class [TableUtilitiesTest](https://github.com/Zipcoder/CR-MicroLabs-Loops-NumbersTrianglesTables/blob/master/src/test/java/io/zipcoder/microlabs/mastering_loops/TableUtilitiesTest.java) successfully passes upon completion of each method stubs in the class [TableUtilities](https://github.com/Zipcoder/CR-MicroLabs-Loops-NumbersTrianglesTables/blob/master/src/main/java/io/zipcoder/microlabs/mastering_loops/TableUtilities.java).
|
|
|
|
|
2
|
+* Ensure each of the test cases in the class [TableUtilitiesTest](https://github.com/Zipcoder/CR-MicroLabs-Loops-NumbersTrianglesTables/blob/master/src/test/java/io/zipcoder/microlabs/mastering_loops/TableUtilitiesTest.java) successfully passes upon completion of each of the method stubs in the class [TableUtilities](https://github.com/Zipcoder/CR-MicroLabs-Loops-NumbersTrianglesTables/blob/master/src/main/java/io/zipcoder/microlabs/mastering_loops/TableUtilities.java).
|
3
|
* `String getLargeMultiplicationTable()`
|
3
|
* `String getLargeMultiplicationTable()`
|
4
|
* `String getSmallMultiplicationTable()`
|
4
|
* `String getSmallMultiplicationTable()`
|
5
|
* `String getMultiplicationTable(int width)`
|
5
|
* `String getMultiplicationTable(int width)`
|
|
|
|
|
114
|
```
|
114
|
```
|
115
|
// : Given
|
115
|
// : Given
|
116
|
// : When
|
116
|
// : When
|
117
|
- String outcome = Tables.getLargeMultiplicationTable();
|
|
|
|
|
117
|
+ String outcome = TableUtilities.getLargeMultiplicationTable();
|
118
|
|
118
|
|
119
|
// : Then
|
119
|
// : Then
|
120
|
System.out.println(outcome);
|
120
|
System.out.println(outcome);
|
|
|
|
|
185
|
int n = 3;
|
185
|
int n = 3;
|
186
|
|
186
|
|
187
|
// : When
|
187
|
// : When
|
188
|
- String outcome = Tables.getMultiplicationTable(n);
|
|
|
|
|
188
|
+ String outcome = TableUtilities.getMultiplicationTable(n);
|
189
|
|
189
|
|
190
|
// : Then
|
190
|
// : Then
|
191
|
System.out.println(outcome);
|
191
|
System.out.println(outcome);
|
|
|
|
|
211
|
int n = 6;
|
211
|
int n = 6;
|
212
|
|
212
|
|
213
|
// : When
|
213
|
// : When
|
214
|
- String outcome = Tables.getMultiplicationTable(n);
|
|
|
|
|
214
|
+ String outcome = TableUtilities.getMultiplicationTable(n);
|
215
|
|
215
|
|
216
|
// : Then
|
216
|
// : Then
|
217
|
System.out.println(outcome);
|
217
|
System.out.println(outcome);
|