@@ -0,0 +1,346 @@
+import java.math.BigInteger;%0A%0Apublic class power_digit_sum %7B%0A%09public static void main(String%5B%5D args) %7B%0A%09%09BigInteger powered = new BigInteger(%222%22);%0A%09%09powered = powered.pow(1000);%0A%09%09int sum=0;%0A%09%09for (int i=0; i%3Cpowered.toString().length(); i++) %7B%0A%09%09%09sum += Integer.parseInt(powered.toString().substring(i, i+1));%0A%09%09%7D%0A%09%09System.out.println(sum);%0A%09%7D%0A%7D

power digit sum: java