Ok, guys. I figured it out, thank you.
The trick was to put the last print statement inside the try block and the code works nicely, so i can finish the application.
Type: Posts; User: shimazaky
Ok, guys. I figured it out, thank you.
The trick was to put the last print statement inside the try block and the code works nicely, so i can finish the application.
[QUOTE=syedbhai;120594]Hello.
You have initialized the variable in the try block. There is a possibility that exception could occur in the try block. Of course, in your case it is not. But for...
So, what you are saying is that since i have not initialized the userNum, i must handle and exception for readline() method? How do i do that?
Hello friends;
It is Joe here again with :o; just finished my first chapter but got stuck on one of my challenges. I am not using any IDE i am using command line, and the compiler returns an...
Hi guys;
My name is Joe and i would like to greed all fellow programmers. I am new to Java and I am fascinated by the language.
I hope this forum will be very helpful to my Java journey.
...