public class item {
  String name;
  int weight;
  
  public String getName() {
    return name; 
  }
  
  public void setName(int [] name) {
    this.name = name;
  }
  
  public int getWeight() {
    return weight;
  }
  
  public void setWeight(int[] weight) {
    this.weight = weight;
  }
  
  public String examine() {
    System.out.println(name + weight); 
  }
}
//created public class item
public class item {
 //created properties for class
  String name;
  int weight;
  
  //method returns string name
  public String getName() {
    return name; 
  }
  //method sets string name
  public void setName(String [] name) {
    this.name = name;
  }
  //method returns integer weight
  public int getWeight() {
    return weight;
  }
  //method sets integer weight
  public void setWeight(int[] weight) {
    this.weight = weight;
  }
  //method to print a description of object and name and weight
  public String examine() {
    System.out.println("description of object" + name + weight); 
  }
}
put in comments for what each method should do