trying java output