From 0f5574a2d0563cd8deb2cfb17402d0e74405a2d9 Mon Sep 17 00:00:00 2001 From: Shahriar Aziz Khan Date: Wed, 20 Aug 2025 10:37:39 +0600 Subject: [PATCH 1/2] Changes made --- Student.java | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Student.java diff --git a/Student.java b/Student.java new file mode 100644 index 000000000000..a2f182880f61 --- /dev/null +++ b/Student.java @@ -0,0 +1,43 @@ +public class Attendance +{ + private int age; + private String name; + + public Attendance() + { + this.age=0; + this.name=""; + } + + public Attendance(int age, String name) + { + this.age=age; + this.name=name; + } + + public int getAge() + { + return age; + } + + public void setAge(int age) + { + this.age=age; + } + + public String getName() + { + return name; + } + + public void setName(String name) + { + this.name=name; + } + + @Override + public String toString() + { + return "Student{name='"+name+"', age=" +age+ "}"; + } +} \ No newline at end of file From f23fb00675c896fbce869f84b19f98ddb4d8dd57 Mon Sep 17 00:00:00 2001 From: Shahriar Aziz Khan Date: Wed, 20 Aug 2025 11:07:20 +0600 Subject: [PATCH 2/2] Changes made to branch from main --- Calculator.java | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Calculator.java diff --git a/Calculator.java b/Calculator.java new file mode 100644 index 000000000000..eb92fa11c0a9 --- /dev/null +++ b/Calculator.java @@ -0,0 +1,25 @@ +public class Computer +{ + public int add(int a, int b) + { + return a+b; + } + + public int subtract(int a, int b) + { + return a-b; + } + + public int multiply(int a, int b) + { + return a*b; + } + + public int divide(int a, int b) + { + if (b == 0) { + throw new ArithmeticException("Division by zero is not allowed."); + } + return a/b; + } +} \ No newline at end of file