@@ -0,0 +1,450 @@
+%0Apublic class SelfPowers %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09%0A%09%09if(args.length %3C 1) %7B%0A%09%09%09System.out.println(%22This program requires 1 integer input!%22);%0A%09%09%09System.exit(0);%0A%09%09%7D%0A%09%09%0A%09%09long totalSum = 0; %0A%09%09int inputtedNum = Integer.parseInt(args%5B0%5D);%0A%09%09for(int i = 1; i %3C= inputtedNum; i++) %7B%09%0A%09%09%09long val = (long) Math.pow(i, i);%0A%09%09%09totalSum += val;%0A%09%09%09System.out.println(val);%0A%09%09%7D%0A%09%09System.out.println(%22Total Sum - %22 + totalSum);%0A%09%09%0A%09%09%0A%09%7D%0A%0A%7D%0A

Create SumOfSelfPowers.java