A detachment of soldiers must cross a river. The bridge is broken and the river is deep. Thinking of what to do, suddenly the officer in charge spots two boys playing in a rowboat by the shore. The boat is so tiny, however, that it can only hold two boys or one soldier. Still, all the soldiers succeed in crossing the river in the boat.
How?