BAEL-3091: The Prototype Pattern in Java (changed code based on valid comments from a reader)

This commit is contained in:
Vivek Balasubramaniam
2019-10-29 22:27:15 +05:30
parent db85c8f275
commit d3d5b060e7
20517 changed files with 1642290 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
/.gradle
/build
/bin
+18
View File
@@ -0,0 +1,18 @@
apply plugin : 'java'
apply plugin : 'application'
dependencies {
compile project(':greeting-library')
compile project(':greeting-library-java')
}
mainClassName = 'greeter.Greeter'
run {
if (project.hasProperty("appArgs")) {
args Eval.me(appArgs)
}
else
args = ["Baeldung"];
}
@@ -0,0 +1,13 @@
package greeter;
import baeldunggreeter.Formatter;
public class Greeter {
public static void main(String[] args) {
final String output = GreetingFormatter
.greeting(args[0]);
String date = Formatter.getFormattedDate();
System.out.println(output);
System.out.println("Today is :" + date);
}
}
@@ -0,0 +1,11 @@
public class TestGreeting{
}