i want to name a item and give it a color(probs an int value)
i was thinking of doing a 2d array but I need to send it to another class
i create the item by
Monster m = new Monster(this);

any ideas

you need to be a little more specific of what you're trying to do.

i want to name a item and give it a color

that could mean something as simple as this:

class Item
{
	String name;
	Color color;
	public Item(String name, Color color)
	{
		this.name = name;
		this.color = color;
	}
}
 
Item myItem = new Item("monster", new Color(147,54,175));
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.