Skip to content

Commit 5fff4a5

Browse files
committed
Adding hello world for setup instructions
1 parent d41251d commit 5fff4a5

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package com.packt.datastructuresandalg.setup;
2+
3+
public class HelloWorld {
4+
public String seyHello() {
5+
return "Hello World!";
6+
}
7+
8+
public static void main(String []args) {
9+
System.out.println((new HelloWorld()).seyHello());
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package com.packt.datastructuresandalg.setup;
2+
3+
import junit.framework.TestCase;
4+
5+
public class HelloWorldTest extends TestCase {
6+
public void testHelloWorld() {
7+
HelloWorld helloWorld = new HelloWorld();
8+
assertEquals(helloWorld.seyHello(), "Hello World!");
9+
}
10+
}

0 commit comments

Comments
 (0)