Konigsberger 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.
KonigsbergergraduatedfromBerlinin1860andthenspentthethreeyearsfrom1861to1864teachingmathematicsandphysicstotheBerlincadetcorps.