Created
November 28, 2014 14:51
-
-
Save oehme/297bd5e2ad74f8ddbbe0 to your computer and use it in GitHub Desktop.
Usage of @message annotation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Messages class MyMessages {} | |
class Test { | |
def static void main(String[] args) { | |
val messages = new MyMessages(Locale.GERMAN) | |
println(messages.hello("Stefan", new Date)) | |
print(messages.trains(3)) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment