public static void main(String[] args) {
        int hundredsDigit, tensDigit, unitsDigits;
        int data;
        System.out.println("the daffodils number between 100 and 999:");
        for (int i = 100; i < 999; i++) {
            hundredsDigit = i / 100;
            tensDigit = (i - 100 * hundredsDigit) / 10;
            unitsDigits = i - 100 * hundredsDigit - 10 *tensDigit;
            data = hundredsDigit*hundredsDigit*hundredsDigit+tensDigit*tensDigit*tensDigit+unitsDigits*unitsDigits*unitsDigits;
            if(data == i){
                System.out.println(i);
            }
        }
        System.out.println("---end---");
    }