next() method returns a String not a number, specifically not even an int or double, to fix this, you need to test if the next is a int or is a double. Ie:
if (getInfo.hasNextInt()) {
showInfo(getInfo.nextInt());
}else if(getInfo.hasNextDouble()) {
showInfo(getInfo.nextDouble());
}else{
//Neither int or double
}
Hope this helps!