I'm taking a CS course and this code is giving me problems.
while (statScan.hasNext()){
currentStat = statScan.next();
if (currentStat = h);
{
hStat++;
}
System.out.println("" + currentStat);
Look at the "if" statement. Java says "cannot convert string to boolean" and from my understanding boolean
is a true/false sorta thing so what Java isn't understanding is how to evaluate and compare the strings. How do I force it to do so?