Day by day java programmes