Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chloes pull request #171

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/main/java/IntroLab.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,17 @@ public static String printLabMessage(String greeting, String name,
* As a reference, we've provided the sample method exampleStudent.
* Make sure you document your method properly!
*/

/**
* An example method that calls on printLabMessage.
*/
public static String exampleStudent() {
public static String Cheu1449() {
return printLabMessage("Hello", "Stu Dent", true,
"Welcome to CSC207!");
}


public static void main(final String[] args) {
System.out.println(exampleStudent());
System.out.println(Cheu1449());

/* TODO: Add a call to the method you wrote in this main method,
* and print the results of it.
Expand Down
3 changes: 2 additions & 1 deletion src/test/java/IntroLabTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import static org.junit.Assert.*;


public class IntroLabTest {
@Before
public void setUp() {
Expand All @@ -21,7 +22,7 @@ public void tearDown() {
public void testExampleStudent() {
String expected = "Hello! My name is Stu Dent! " +
"I like cats more than dogs! Welcome to CSC207!";
String actual = IntroLab.exampleStudent();
String actual = IntroLab.Cheu1449();
assertEquals(expected, actual);
}

Expand Down