Create DigitSum.java

We take out all the digits one by one and add it.

#compiling
$ javac DigitSum.java

#running
$ java DigitSum input