Java programs in testing phase