diff options
Diffstat (limited to 'oop/02-non-static-methods')
| -rw-r--r-- | oop/02-non-static-methods/.gitignore | 1 | ||||
| -rw-r--r-- | oop/02-non-static-methods/Calculator.java | 15 | ||||
| -rw-r--r-- | oop/02-non-static-methods/MyApp.java | 13 |
3 files changed, 0 insertions, 29 deletions
diff --git a/oop/02-non-static-methods/.gitignore b/oop/02-non-static-methods/.gitignore deleted file mode 100644 index 6b468b6..0000000 --- a/oop/02-non-static-methods/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.class diff --git a/oop/02-non-static-methods/Calculator.java b/oop/02-non-static-methods/Calculator.java deleted file mode 100644 index ecc7234..0000000 --- a/oop/02-non-static-methods/Calculator.java +++ /dev/null @@ -1,15 +0,0 @@ - -public class Calculator { - - public int add(int a, int b) { - return a + b; - } - - public int subtract(int a, int b) { - return a - b; - } - - public double convertFromC2F(double cTemp) { - return cTemp*180/100 + 32.0; - } -} diff --git a/oop/02-non-static-methods/MyApp.java b/oop/02-non-static-methods/MyApp.java deleted file mode 100644 index 2ebdcae..0000000 --- a/oop/02-non-static-methods/MyApp.java +++ /dev/null @@ -1,13 +0,0 @@ - -public class MyApp { - - /** - * @param args - */ - public static void main(String[] args) { - Calculator cal = new Calculator(); - - System.out.println(cal.convertFromC2F(100.0)); - } - -} |
