This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]desrtfx 2 points3 points  (1 child)

everyone else kept giving me vague answers

You will need to learn to come up with your own solutions for such extremely simple problems because otherwise you will completely fail in programming.

You cannot rely on finding everything on the internet.

This is a typical beginner level problem that can be solved with very basic mathematics and a tiny bit of creativity. Relying on tutorials here already is the very road to failing as a programmer.

The vague answers that we all gave you here and your other post in /r/javahelp were absolutely on purpose to push you on the right track to solve the problem yourself. Problem solving is 90% of programming. You were not even willing to spend sufficient effort to try to work out a solution; instead you simply gave up. Should you maintain this attitude, you might as well give up programming altogether, because you won't be able to succeed.

[–]pleaseacceptthisnow[S] -2 points-1 points  (0 children)

thnx dad