I'm getting this error and don't know what the problem is...
package com.codegym.task.task01.task0132;

/*
Sum of the digits of a three-digit number

*/

public class Solution {
    public static void main(String[] args) {
        System.out.println(sumDigitsInNumber(546));
    }

    public static int sumDigitsInNumber(int number) {
        int number1 = number % 10;
        int number2 = number1 % 10;
        int number3 = number2 % 10;
        int sum = number1 + number2 + number3;
        return sum;
        //write your code here
    }
}