First a quick Java capitalization convention note:
Classes and only classes have the first letter capitalized. eg: MyClass.
Variables and methods begin with lower case, then follow standard 'camel hump' capitalization. eg: aVariable, someMethod.
We do this so things are immediately recognizable. To a Java programmer "MyVariable" is first considered to be a class, confusion ensues and extra time is required to decipher the actual meaning.
On to your question.
When designing an algorithm, first one must consider what the input will be and what the expected output should be.
Your comment notes that 4567 is the input, what is the expected output? Figuring this out is called a "desk check" and is the only reliable way to know if your code is working as expected.
If we desk check your code, we get:
4567 / 1000 + 7 = 11
4567 % 1000 / 100 + 7 = 12
4567 % 100 / 10 + 7 = 13
4567 % 10 + 7 = 14
11 + 12 + 13 + 14 = 50
But, I'm guessing that 11121314 is wanted? Hmm, no, you said you want a 4 digit number...you'll need to clarify what you want before we can continue.