Java note example