diff --git a/maven-java-kotlin/src/main/java/com/baeldung/mavenjavakotlin/Application.java b/maven-java-kotlin/src/main/java/com/baeldung/mavenjavakotlin/Application.java new file mode 100644 index 0000000000..83daf55df7 --- /dev/null +++ b/maven-java-kotlin/src/main/java/com/baeldung/mavenjavakotlin/Application.java @@ -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; + } + } + +} diff --git a/maven-java-kotlin/src/main/java/com/baeldung/mavenjavakotlin/services/JavaService.java b/maven-java-kotlin/src/main/java/com/baeldung/mavenjavakotlin/services/JavaService.java new file mode 100644 index 0000000000..6dad31b3a0 --- /dev/null +++ b/maven-java-kotlin/src/main/java/com/baeldung/mavenjavakotlin/services/JavaService.java @@ -0,0 +1,9 @@ +package com.baeldung.mavenjavakotlin.services; + +public class JavaService { + + public void sayHello() { + System.out.println("Java says 'Hello!'"); + } + +}