Varargs example wrong

Posted by Anonymous February 18, 2010 - 5:48pm

http://www.edumax.com/java-basics-varargs.html

Fruit apple = new Fruit("Apple","apple.PNG",70,red, yellow, green)

red, yellow, green

should read:

"red", "yellow", "green"

unless red is a declared String-- same for the other two colors.