Ah, got it! I had the if...else inside the for loops, and when I moved them outside it was fine for some reason. It now compiles.
Have a great day, Alex
----- Original Message ----- From: "Ken Perry" <whistler@xxxxxxxxxxxxx To: <programmingblind@xxxxxxxxxxxxx Date sent: Sat, 23 Feb 2008 13:43:42 -0800Subject: RE: method saying "no return statement" when there IS
one
I would have to see the code to know what is going wrong.
Ken
-----Original Message----- From: programmingblind-bounce@xxxxxxxxxxxxx[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Alex
Hall
Sent: Saturday, February 23, 2008 1:43 PMTo: programmingblind@xxxxxxxxxxxxx;
programmingblind@xxxxxxxxxxxxx
Subject: RE: method saying "no return statement" when there IS
one
I just tried changing the method so I put an int into a variable
I called
"ok", then return ok. It now says that variable ok might not
have been
initialized. It was initialized at the start of the function,
however,
right along with my i and j counters and there is no problem with
i or j.
What am I doing wrong?????
Have a great day, Alex __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind
__________ View the list's information and change your settings at //www.freelists.org/list/programmingblind
__________View the list's information and change your settings at //www.freelists.org/list/programmingblind