[Solved] Why does compiler gives this exception [closed]
First off, a few things to note. First, compilers do not give Exceptions, they give compilation errors – what you are experiencing is at runtime, not compile-time. Second, fileIn.exists() != false is equivalent to fileIn.exists(), which is easier to read. The actual problem you’re receiving is because your condition is false – which implies in … Read more