/**
 * This class is complete
 */
public class vegetable
{
    private int number;
    private String name;

    public vegetable(int num, String n)
    {
        number = num;
        name = n;
    }

    public int getNum() { return number; }
    public String getName() { return name; }
}

Create vegetable.java