some code for note in jdk7 learning