From baaba4a281b7d54e6b5d7767989c303b854b6932 Mon Sep 17 00:00:00 2001 From: Kamal Wickramanayake Date: Sun, 22 Feb 2026 19:43:58 +0530 Subject: Directory rename --- oop/02-non-static-methods/.gitignore | 1 - oop/02-non-static-methods/Calculator.java | 15 --------------- oop/02-non-static-methods/MyApp.java | 13 ------------- 3 files changed, 29 deletions(-) delete mode 100644 oop/02-non-static-methods/.gitignore delete mode 100644 oop/02-non-static-methods/Calculator.java delete mode 100644 oop/02-non-static-methods/MyApp.java (limited to 'oop/02-non-static-methods') 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)); - } - -} -- cgit v1.2.3