Daniel Demesmaecker wrote:I havent runned it eather, just following your logic.
if you do it like that I would use:
Daniel Demesmaecker wrote:
but that seem a lot of if's to me, I would consider a switch
Daniel Demesmaecker wrote:An other excersise you might wanna try, they asked me to that on my jobinterview (without an ide of course)
Write a program that keeps asking the user for nrs untill he presses 0 and sort the inputs in prime and non-prime numbers.
salvin francis wrote:
A good program solves someone's problem. Let's say that your neighborhood has a book library and they manage everything on paper or simply Ms-Excel. Can you solve their problem using java ?
Even if it's a basic CUI (Character user interface) code, it's good to start with.
Campbell Ritchie wrote:Just about anything would do, yes. One thing they sometimes ask in interviews is to write a program for Fizz‑Buzz. If you can't think of anything else, how about a fully object‑oriented version of Fizz‑Buzz?
Liutauras Vilda wrote:
I know we have mentioned book "Head First Java" many times, and I know this particular book is a bit dated, but get it, read it, that would make you understand some programming and other fundaments, these would be needed in your daily work as a programmer.
I don't think I said clearly yet, but forget the certification for now. As Campbell said, start on some personal project, you'll learn way more as a programmer. Don't get me wrong, certifications aren't bad, but probably not now. Desperate trying to become certified is of little value I think.