You're error may be here:
int o = 0;
int numRem = 0;
int numLim = 0;
while((sc.hasNextInt())&&(o<1)) {
----> int numT = sc.nextInt(); // You are re-declaring numT
numLim = sc.nextInt();
numRem = sc.nextInt();
o++;
}
You can avoid coding errors like this by adding more white space, where appropriate.
For example, I would have written your code in this format:
int o = 0;
int numRem = 0;
int numLim = 0;
while( sc.hasNextInt() && (o < 1) )
{
int numT = sc.nextInt();
numLim = sc.nextInt();
numRem = sc.nextInt();
o++;
}
By following a coding style / guideline it will not only make it easier for yourself to read the code but others as well.