i get a ']' expected and a <identifier. expected. evertthing compiles fine until i put in the line shirtArray = shirt1; i have tried type casting the entry shirtArray = (Shirt)shirt1; but i geteven more errors.
please help i have been staring at this code for 30min and i cant seem to find the problem.
all code can be thought of as a flow of ideas. much like circuits hold a flow of electrons, and only electrons within the circuit can flow, methods contain the flow of ideas -- of code statements. Only statements within methods have a chance of joining the program flow and being executed.
Anything outside of the methods is out of the flow stream; to use another metaphor, these statements are sitting on the river bank, and there they will sit forever, never to join in with the running of the code statements that flow through the methods.