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.
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.
add new comment