how do i write java program will enter six digit number and give me sum

How do I write a Java program that will enter a six digit number and give me the sum of the six digits?