Campbell Ritchie wrote:As Carey's solution (a good solution) shows, there are always different ways to solve each problem.
I can't tell why you have got poor marks. Are you keeping up with lectures? Are you being taught correctly? Are you getting disorganised and not starting the assignments on time? Most people who enjoy programming probably are good at it, but we haven't seen enough of your work to know that about you.
Carey Brown wrote:When you read up on a new feature, I find it helps to write yourself a very small program that demonstrates its behavior. Usually these are between 15 and 50 lines long. I have hundreds of these little programs I call TryXXX. It's difficult to put pieces together that you're only vaguely familiar with. If I'm writing a program and something isn't behaving like I expected I'll cut and paste just that small snippet of code into a TryXXX program and get to understand it and then go back to the original program with a new understanding.
Now that you asked, I can comment on those from my recent observations.
Jeremy Wages wrote:How often does a student end up having to re-take their java class?
Liutauras Vilda wrote:
Some better news: good that you came here, it seems you're looking for solutions already or change the way from what you did before, so things might not that bad as I wrote one sentence above. Just do those assignments one by one, if you need - repeat class, that is not that bad, just do assignments right away you get them and that is it, sooner or later you need to do them anyway, so why not to start sooner?
Liutauras Vilda wrote:@OP
It seems I forgot to remind you, you solved this exercise, didn't you? If you have started that earlier, that wouldn't be handed in as a late assignment. So problem not in your abilities to solve problems, but not starting on them as early as you should
So, heads up We expect you to see here more often, it just a matter of practice.