Skip to content

Commit d5f9857

Browse files
committed
added to DeepDive06 w/Samantha
1 parent 84cfc02 commit d5f9857

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed
0 Bytes
Binary file not shown.

TeachingKidsProgramming/src/org/teachingkidsprogramming/section06modelviewcontroller/DeepDive06ModelViewController.java

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,25 @@ public class DeepDive06ModelViewController
2121
// Step 5: Advance to the next method
2222
// Do not change anything except the blank (___)
2323
//
24-
// concepts:
24+
// concepts:
2525
// string concatenation
2626
// MVC
2727
@Test
28-
public void concatenateString() throws Exception
28+
public void stringsCanBeArrays() throws Exception
2929
{
3030
//create a new string from the strings "happy " + "baby"
3131
String[] words = {"happy ", ___};
3232
Assert.assertEquals("happy baby", words);
3333
}
34+
@Test
35+
public void canConcatenateVariables() throws Exception
36+
{
37+
//create a variable called words which equals "is to"
38+
//create a variable called analogy which equals "Florida " + words + " America as appendix " + words + " body"
39+
String words = "is to";
40+
String analogy = "Florida " + ___ + " America as appendix " + ___ + " body";
41+
Assert.assertEquals("Florida is to America as appendix is to body", analogy);
42+
}
3443
/**
3544
* Ignore the following, It's needed to run the homework
3645
*

0 commit comments

Comments
 (0)