adding main dot java