diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2017-02-20 10:33:44 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2017-02-20 10:33:44 +0100 |
commit | 25bf80f2c6c3c6784f78d9d41b5e38a5273a00fe (patch) | |
tree | e0125ce43205e48c0b14faacca248e58037e6479 /java/project/src/main/ch/asynk/MyClass.java | |
parent | 348663665082107181968a76fd14c2491b4f51e2 (diff) | |
download | share-25bf80f2c6c3c6784f78d9d41b5e38a5273a00fe.zip share-25bf80f2c6c3c6784f78d9d41b5e38a5273a00fe.tar.gz |
java : add project (ant,ivy,junit,logback)
Diffstat (limited to 'java/project/src/main/ch/asynk/MyClass.java')
-rw-r--r-- | java/project/src/main/ch/asynk/MyClass.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/java/project/src/main/ch/asynk/MyClass.java b/java/project/src/main/ch/asynk/MyClass.java new file mode 100644 index 0000000..57ef46f --- /dev/null +++ b/java/project/src/main/ch/asynk/MyClass.java @@ -0,0 +1,25 @@ +package ch.asynk; + +import lombok.Getter; + +public class MyClass +{ + static private String msg = "Hello World"; + + private @Getter int n; + + public MyClass() + { + n = 666; + } + + public void print() + { + System.err.println(msg); + } + + public void exception() throws MyException + { + throw new MyException("it's mine"); + } +} |