[Solved] Compiling Error- Unreachable Statement


That’s because there’s an infinite loop just before it:

for(i = 0; 9 <26;i++)
    bigQ.put((char) ('A' + i));

Since 9 < 26 will always be true, the loop will execute forever. Did you mean to do this instead?:

for(i = 0; i <26;i++)
    bigQ.put((char) ('A' + i));

1

solved Compiling Error- Unreachable Statement