You will receive a mathematical problem requiring some form of calculation. Your task is to analyze and articulate the logical approach needed to transform the input into the expected output. Then, formulate a prompt that effectively communicates the requirements to the language model, ensuring it generates an implementation in Java.
ArmstrongNumber.checkArmstrong(153) => "153 is an Armstrong number!"
ArmstrongNumber.checkArmstrong(123) => "123 is not an Armstrong number!"
ArmstrongNumber.checkArmstrong(9474) => "9474 is an Armstrong number!"*Armstrong number (also known as a narcissistic number) is a number that is the sum of its own digits, each raised to the power of the number of digits.