I see...I'm also trying to list equipment, add equipment, and remove equipment. The equipment class looks like this:
public class Equipment
{
private String name;
private int weight;
public...
Type: Posts; User: DarkestLord
I see...I'm also trying to list equipment, add equipment, and remove equipment. The equipment class looks like this:
public class Equipment
{
private String name;
private int weight;
public...
I see...but how would I put it in the backpack from the method? This is what I have so far:
public class Backpack
{
private Canteen theCanteen;
private Equipment[] theEquipment;
Backpack()...
I made two classes for my "Backpack". You may ignore these if you wish.
/**
* A storage space for items
*
* @author Erik
* @version 1
*/
public class Canteen