First Fit Java