Advertisement
DigiDuncan

addFood

Jun 2nd, 2015
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.29 KB | None | 0 0
  1.     public void addFood(String food)
  2.     {
  3.         //String foodInput = interpretFood(food);
  4.        
  5.         String foodInput = food;
  6.        
  7.         for (int i = 0; i >= FoodList.size(); i++)
  8.         {
  9.             if (foodInput.equals(FoodList.get(i).getName()))
  10.             {
  11.                 System.out.println(FoodList.get(i).getCarbs());
  12.             }
  13.         }
  14.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement