We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d41251d commit 5fff4a5Copy full SHA for 5fff4a5
src/main/java/com/packt/datastructuresandalg/setup/HelloWorld.java
@@ -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
+}
src/test/java/com/packt/datastructuresandalg/setup/HelloWorldTest.java
@@ -0,0 +1,10 @@
+import junit.framework.TestCase;
+public class HelloWorldTest extends TestCase {
+ public void testHelloWorld() {
+ HelloWorld helloWorld = new HelloWorld();
+ assertEquals(helloWorld.seyHello(), "Hello World!");
0 commit comments