or drag border to resize
Best viewed with Firefox
Feel free to donate Bitcoin, Bitcoin Cash, Ether or Litecoin Post this site to

Java fundamentals excercises

Java Excercise 14

Can be done following Break

- A class with button and textarea. Add a method that accepts one parameter, a year. Let the method return true if the year is a leap-year and false if it's not. Show the result in the textarea. Leap year algorithm : multiple of 4, but not of 100. Or, multiple of 400. Hardcode the year to be tested.

Use this as your starting point : (double click to select)


Click in code below to read


Copyright © 2000-2014 System Exclusive & Multi Midi (NL) All rights reserved

Terms, conditions, disclaimer