Skip to content

PROD Update file test2.java

prajakta bendre requested to merge Testbranch1 into java_branch

Summary by Bito

This pull request introduces a new Calculator class in test2.java, implementing basic arithmetic operations with a demonstration main method.

Detailed Changes
  • Adds a new Calculator class with methods for add, subtract, multiply, and divide in test2.java
  • Introduces a main method that instantiates the Calculator and performs sample calculations
  • Includes potential bugs in the main method such as incorrect argument counts and division by zero
Edited by prajakta bendre

Merge request reports