Königsberger graduated from Berlin in 1860 and then spent the three years from 1861 to 1864 teaching mathematics and physics to the Berlin cadet corps.

Please remove spaces between words.
KönigsbergergraduatedfromBerlinin1860andthenspentthethreeyearsfrom1861to1864teachingmathematicsandphysicstotheBerlincadetcorps.