Okay, I got it working. Now could you please check to make sure I did this right? also please explain why I do not need a loop here.

Code:
 
public class Dog 
{
	public String name;
		public static void main(String args[]) 
		{
      			Dog d = new Dog("Snoop");
			Dog cobi = new Dog("Cobi");
			Dog dog2 = new Dog("Fido");
      			d.bark();
			cobi.bark();
			dog2.bark();
   		}

	public Dog(String name) 
	{
      		this.name = name;
   	}

	public String getName() 
	{
		return name;
   	}

	public void bark() 
	{

		System.out.println(this.name+" says woof!");
   	}
}
 
_________________________
My New site OpenEyes