Skip to content

Commit

Permalink
feat: add new method greet(String greeting, String who)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Schulte authored and Tobias Schulte committed Mar 17, 2017
1 parent 5d21493 commit 372b5f4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/de/gliderpilot/semanticrelease/test/Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,19 @@
public class Test {

public static void main(String[] args) {
System.out.println(helloWorld());
System.out.println(greet("Hello", "World"));
}

public static String helloWorld() {
return hello("World");
}

public static String hello(String who) {
return "Hello " + who;
return greet("Hello", who);
}

public static String greet(String greeting, String who) {
return greeting + " " + who;
}

}

0 comments on commit 372b5f4

Please sign in to comment.