Refactored all solutions
This commit is contained in:
@@ -16,7 +16,7 @@ class Arithmetic {
|
||||
|
||||
class Adder extends Arithmetic {}
|
||||
|
||||
public class Solution{
|
||||
public class Solution {
|
||||
public static void main(String []args) {
|
||||
// Create a new Adder object
|
||||
Adder a = new Adder();
|
||||
@@ -26,5 +26,5 @@ public class Solution{
|
||||
|
||||
// Print the result of 3 calls to Adder's `add(int,int)` method as 3 space-separated integers:
|
||||
System.out.print(a.add(10,32) + " " + a.add(10,3) + " " + a.add(10,10) + "\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user