private static boolean isValueAnArmstrongNumber(int input) {

        // convert user int value to a String object in order to use the charAt() method
        StringBuffer valueAsStr = new StringBuffer(String.valueOf(input));

        int combinedTotal = 0;

        // determine the number of digits in the users input
        for(int i = 0; i < valueAsStr.length(); i++ ) {

            String number = Character.toString(valueAsStr.charAt(i));

            // Using Math.pow (power of) work out the total of each individual part of the sum.
            Double toPower = Math.pow(Double.valueOf(number), valueAsStr.length());

            // add individual values multiplied by one another to the combinedTotal
            combinedTotal +=  toPower.intValue();

        }

        return (combinedTotal == input) ?  true : false;
    }