Nil. Hatamova wrote:This code gives compile error. But i cant find why?
If you have the appropriate import statement, that code snippet should compile without any errors. The FileNotFoundException resides in the java.io package (not in the java.lang package) and therefore an explicit import statement is required.
When you compile a file in java, it tells you EXACTLY why it won't compile. Those error messages mean something. At the very least, you should post it here, and we can help you learn tow to read and interpret them.
Post by:autobot
Always look on the bright side of life. At least this ad is really tiny:
a bit of art, as a gift, that will fit in a stocking