i have a class constructor
public Knapsack(Item[] items){
// to do
}
Then I have and Item class that takes two arguments string and int. so for example
Knapsack k = new Item("Pen", 15);
when this object is passed into my constructor in other class how do I can use only single arguments such as "PEN" and int 15