I have three objects each with an individual integer assigned to them.

```
Food hamburger = new Food();
hamburger.calories = 500;
Food spaghetti = new Food();
spaghetti.calories = 700;
Food sausage = new Food();
sausage.calories = 300;

```

And then a method to compare which food has the lowest calories.

```
public Food findLowestCalories(Food f1, Food f2, Food f3) {

    if (f1.calories < f2.calories && f1.calories < f3.calories){
        return f1;
    } else if (f2.calories < f1.calories && f2.calories < f3.calories){
        return f2;
    } else {
        return f3;
    }

}

```

Then I have a line to print out the result of findLowestCalories:

```
System.out.println(findLowestCalories(hamburger, spaghetti, sausage));

```

I am getting an error: The method findLowestCalories(Food, Food, Food) is undefined for the type FoodEater.

Any help would be greatly appreciated!

**Edit:**

So FoodEater looks like this:

public class Food Eater {

```
public static void main(String[] args) {

    Food hamburger = new Food();
    hamburger.calories = 500;
    Food spaghetti = new Food();
    spaghetti.calories = 700;
    Food sausage = new Food();
    sausage.calories = 300;

    System.out.println(findLowestCalories(hamburger, spaghetti, sausage));

}

```

}

and my other class like this:

```
public class FoodMeasure {

public Food findLowestCalories(Food f1, Food f2, Food f3) {

    if (f1.calories < f2.calories && f1.calories < f3.calories){
        return f1;
    } else if (f2.calories < f1.calories && f2.calories < f3.calories){
        return f2;
    } else {
        return f3;
    }

}

```

}