Added 25 solutions
This commit is contained in:
@@ -24,12 +24,13 @@ public class Solution {
|
||||
|
||||
for (Method method : Printer.class.getDeclaredMethods()) {
|
||||
String name = method.getName();
|
||||
|
||||
if(name.equals("printArray"))
|
||||
if (name.equals("printArray")) {
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
if(count > 1)System.out.println("Method overloading is not allowed!");
|
||||
|
||||
if (count > 1) {
|
||||
System.out.println("Method overloading is not allowed!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user