Java Assignment from Class