David Newton wrote:
Oh, it's not.
Perhaps you could write the method in such a way that it is.
David Newton wrote:Where are you defining "number"? Is it in a scope visible to the return statement?
Where in your code do you do a mathematical operation? What value are you trying to calculate?
David Newton wrote:Going back and deleting your comments seems a bit odd, and make a lot of the thread nonsensical.
Paul Clapham wrote:Karl, I would appreciate it if you could read this FAQ entry:
BeForthrightWhenCrossPostingToOtherSites
and act accordingly. Thanks in advance for your cooperation.
Write a method called sizeFile() declared as follows:
public int sizeFile (String label) {
...
}
which counts the number of characters in the file whose name is supplied as the "label" parameter. This method should return the number of characters in the file, or -1 if an IOException occurs.
David Newton wrote:Did you import BufferedReader?
David Newton wrote:Is there a BufferedReader ctor that takes an InputStream?
David Newton wrote:Did you *not* have that compilation issue before?!