various java programs