@@ -0,0 +1,876 @@
+import java.util.*;%0Aimport java.io.*;%0A%0A//Write your code here%0Aclass Calculator %7B%0A    public int power(int n, int p) %7B%0A        if ((n %3C 0) %7C%7C (p %3C 0))%0A            throw new RuntimeException(%22n and p should be non-negative%22);%0A        Double res = Math.pow(n, p);%0A        return res.intValue();%0A    %7D%0A%7D%0A%0Aclass Solution%7B%0A%0A    public static void main(String %5B%5Dargh)%0A    %7B%0A        Scanner in = new Scanner(System.in);%0A        int T=in.nextInt();%0A        while(T--%3E0)%0A        %7B%0A            int n = in.nextInt();%0A            int p = in.nextInt();%0A            Calculator myCalculator = new Calculator();%0A            try%0A            %7B%0A                int ans=myCalculator.power(n,p);%0A                System.out.println(ans);%0A                %0A            %7D%0A            catch(Exception e)%0A            %7B%0A                System.out.println(e.getMessage());%0A            %7D%0A        %7D%0A%0A    %7D%0A%7D%0A

Create Day_17_More_Exceptions.java