[BAEL-1835] Adding dummy application and Java service

This commit is contained in:
dupirefr 2018-07-06 18:21:53 +02:00
parent 14a571a3f2
commit 3a9ca3b8d9
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,21 @@
package com.baeldung.mavenjavakotlin;
import com.baeldung.mavenjavakotlin.services.JavaService;
public class Application {
private static final String JAVA = "java";
public static void main(String[] args) {
String language = args[0];
switch (language) {
case JAVA:
new JavaService().sayHello();
break;
default:
// Do nothing
break;
}
}
}

View File

@ -0,0 +1,9 @@
package com.baeldung.mavenjavakotlin.services;
public class JavaService {
public void sayHello() {
System.out.println("Java says 'Hello!'");
}
}