Playing around with Java features