rambling java code??