from masijade
Who says the OP "didn't want new concepts"?
from OP
Please show me how to fix it using my code, not by introducing entirely new concepts. I am new to java and may not be using the most eficient methods to solve problems.
from masijade
But I definately will not say to other posters "don't give the right answer, simply get the wrong way to work right" without that statement from the OP.
I've been personally frustrated more than once when somebody insisted on telling me the "right" way rather than what I was doing wrong.
I was guilty of the same thing by introducing another algorithm. And I also took the trouble to find his problem and tell him where to look. A lot of the posters need to learn basic techniques of programming and trouble shooting, as was the case here. This is the basic skill that needed to be addressed first. Then point out the better way. I get the feeling the OP felt the same way.
Don't mean to be criticizing the OP. His code was well structured and showed competence. We all have problems that we get stuck on. I am sure he will learn and effectively use some of these more advanced techniques later, and it is certainly a good idea to introduce better alternatives. It will make it more relevant when he gets there.
But using a different method just sweeps his original problem under the rug. It increases his knowledge without increasing his skill.
|