Created
April 26, 2019 06:41
-
-
Save sanchikagn/3171e2fa1811e49379cf330622d26ba0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class FoodFacts { | |
| private int servingSize = -1; | |
| private int netWeight = -1; | |
| private String packType = ""; | |
| private int calories; | |
| private int sodium; | |
| private int carbohydrate; | |
| public FoodFacts() {} | |
| public void setServingSize(int servingSize) { | |
| this.servingSize = servingSize; | |
| } | |
| public void setNetWeight(int netWeight) { | |
| this.netWeight = netWeight; | |
| } | |
| public void setPackType(String packType) { | |
| this.packType = packType; | |
| } | |
| public void setCalories(int calories) { | |
| this.calories = calories; | |
| } | |
| public void setSodium(int sodium) { | |
| this.sodium = sodium; | |
| } | |
| public void setCarbohydrate(int carbohydrate) { | |
| this.carbohydrate = carbohydrate; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment