Reworked the examples.
This commit is contained in:
parent
20914f19b4
commit
e00dfe2c7b
28 changed files with 458 additions and 180 deletions
22
examples/kotlin/src/main/java/com/example/Example.java
Normal file
22
examples/kotlin/src/main/java/com/example/Example.java
Normal file
|
@ -0,0 +1,22 @@
|
|||
package com.example;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
|
||||
public class Example {
|
||||
public static void main(final String... args) {
|
||||
final SimpleDateFormat sdf = new SimpleDateFormat("EEE, d MMM yyyy 'at' HH:mm:ss z");
|
||||
|
||||
System.out.println("-- From Java ----------------------------------------");
|
||||
|
||||
System.out.println(" " + GeneratedVersion.PROJECT + ' ' + GeneratedVersion.VERSION);
|
||||
|
||||
System.out.println(" Built on: " + sdf.format(GeneratedVersion.BUILDDATE));
|
||||
System.out.println(" Major: " + GeneratedVersion.MAJOR);
|
||||
System.out.println(" Minor: " + GeneratedVersion.MINOR);
|
||||
System.out.println(" Patch: " + GeneratedVersion.PATCH);
|
||||
System.out.println(" PreRelease: " + GeneratedVersion.PRERELEASE);
|
||||
System.out.println(" BuildMetaData: " + GeneratedVersion.BUILDMETA);
|
||||
|
||||
System.out.println("-----------------------------------------------------");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue