Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void addFood(String food)
- {
- //String foodInput = interpretFood(food);
- String foodInput = food;
- for (int i = 0; i >= FoodList.size(); i++)
- {
- if (foodInput.equals(FoodList.get(i).getName()))
- {
- System.out.println(FoodList.get(i).getCarbs());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement