Challenge accepted!

Recently a mate of mine had been mulling over a puzzle that he’d found via Reddit and couldn’t solve. It goes something like this “You can only be exactly twice someone’s age once, and it’s when they turn the same age you were when they were born. Every birthday after that makes you less than twice their age”. So I thought, ‘Hang on a moment! I’ve been writing calendar orientated small Java programs, Java has a “GregorianCalendar” class that I can use, and you can perform time functions! Challenge accepted!’.

Read more

Some more Java

As a follow on from ‘A little bit more Java’, this time we will progress to look at how we can input from the command line and enhance our program even further. The beginnings of a program can be an uphill struggle as we work away to get something that actually does something. Now we’ve made progress, that hill will start to soften and we’ll be able to add more functionality now that we have our base.

Read more