Forums Register Login

Why doesnt compile?

+Pie Number of slices to send: Send
This code gives compile error. But i cant find why?

+Pie Number of slices to send: Send
What compile error?
+Pie Number of slices to send: Send
 

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.

Hope it helps!
Kind regards,
Roel
+Pie Number of slices to send: Send
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.
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
https://gardener-gift.com


reply
reply
This thread has been viewed 535 times.
Similar Threads
Handle and Declare rule - Ducking exceptions
Exception Q?
Exception in main
Exception test
Exceptions & Overridding Example
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 09:35:02.