[HD Pg 294, Sec. 10.4.0 - exceptions-thrown-by-application-programmerexceptions-thrown-by-programmer]
Posted: Mon Mar 18, 2019 1:50 pm
For the if statement to do what it was intended,
if(datatype != 1 || datatype != 2)
should be changed to
if(datatype != 1 && datatype != 2)
if(datatype != 1 || datatype != 2)
should be changed to
if(datatype != 1 && datatype != 2)