Java Final Output