Simple Java

Three simple Java programmes.