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

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

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