import java.util.Random;

public class food extends item {
  // set properties
  int nutrition;
  int quantity;
  
  
// getter method to get integer nutrition
  public int getNutrition() {
    return nutrition;
}
  //setter for integer nutrition
  public int setNutrition(int [] nutrition) {
    nutrition = new nutrition(); 
  }
  
  //getter method to get integer quantity
  public int getQuantity() {
    return quantity;
  }
  
  //setter for integer quantity
  public void setQuantity(int newQuantity) {
    quantity = newQuantity; 
 
  } 
  public void run(){
  Test.getWeight(); 
  Test.getName();
  Test.examine(); 
  }
}
  
  
import java.util.Random;

public class food extends item {
  // set properties
  int nutrition;
  int quantity;
  
  
// getter method to get integer nutrition
  public int getNutrition() {
    return nutrition;
}
  //setter method for integer nutrition 
   public int setNutrition; {
   this.nutrition = nutrition; 
  }
  
  //getter method to get integer quantity
  public int getQuantity() {
    return quantity;
  }
  
  //setter for integer quantity
  public void setQuantity(int newQuantity) {
    quantity = newQuantity; 
 
  } 
  public void run(){
  getWeight(); 
  getName();
  examine(); 
  }
}
  
  
put setter method for integer nutrition