java codes and notes