Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #1118
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.chainon-marquant.org!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!198.186.194.247.MISMATCH!news-out.readnews.com!transit3.readnews.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
|---|---|
| From | Lew <lewbloch@gmail.com> |
| Newsgroups | comp.lang.java.help |
| Subject | Re: <identifier> expected error |
| Date | Fri, 23 Sep 2011 12:10:58 -0700 (PDT) |
| Organization | http://groups.google.com |
| Lines | 24 |
| Message-ID | <7371102.30.1316805058374.JavaMail.geo-discussion-forums@prec11> (permalink) |
| References | <c4db596b-eb82-4d41-bfd6-372b4037bfca@l2g2000vbn.googlegroups.com> <seko77pvl58ld3n7kbithfe65gtsrka76h@4ax.com> |
| Reply-To | comp.lang.java.help@googlegroups.com |
| NNTP-Posting-Host | 2620:0:1000:fd42:224:d7ff:fe69:5838 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-Trace | posting.google.com 1316805058 18235 127.0.0.1 (23 Sep 2011 19:10:58 GMT) |
| X-Complaints-To | groups-abuse@google.com |
| NNTP-Posting-Date | Fri, 23 Sep 2011 19:10:58 +0000 (UTC) |
| In-Reply-To | <seko77pvl58ld3n7kbithfe65gtsrka76h@4ax.com> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=2620:0:1000:fd42:224:d7ff:fe69:5838; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T |
| User-Agent | G2/1.0 |
| X-Google-Web-Client | true |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.help:1118 |
Show key headers only | View raw
Roedy Green wrote:
> Kathy Walker
> <kjat...@gmail.com> wrote, quoted or indirectly quoted someone who
> said :
>
>> public interface NumList {
>> printArray();
>> }
>
> inferfaces do not contain excutable code, just method declarations and
> perhaps some constants. They are like skeleton very abstract classes.
Note, however, that the OP's code would not have been in violation of that precept if the interface had been defined:
public interface NumList {
void printArray();
}
The coaching might have been phrased, "Method declarations must specify the return type, or 'void' if nothing is to be returned."
So I don't see "executable code" in the declaration, but "method defined without return type". Either way it needs to be fixed.
--
Lew
Back to comp.lang.java.help | Previous | Next — Previous in thread | Next in thread | Find similar
<identifier> expected error Kathy Walker <kjata1013@gmail.com> - 2011-09-22 16:40 -0700
Re: <identifier> expected error "John B. Matthews" <nospam@nospam.invalid> - 2011-09-22 20:54 -0400
Re: <identifier> expected error Kathy Walker <kjata1013@gmail.com> - 2011-09-22 18:08 -0700
Re: <identifier> expected error "John B. Matthews" <nospam@nospam.invalid> - 2011-09-22 21:24 -0400
Re: <identifier> expected error Lew <lewbloch@gmail.com> - 2011-09-22 17:56 -0700
Re: <identifier> expected error Kathy Walker <kjata1013@gmail.com> - 2011-09-22 18:09 -0700
Re: <identifier> expected error Roedy Green <see_website@mindprod.com.invalid> - 2011-09-23 02:30 -0700
Re: <identifier> expected error Roedy Green <see_website@mindprod.com.invalid> - 2011-09-23 02:32 -0700
Re: <identifier> expected error Lew <lewbloch@gmail.com> - 2011-09-23 12:10 -0700
Re: <identifier> expected error Roedy Green <see_website@mindprod.com.invalid> - 2011-09-23 17:10 -0700
Re: <identifier> expected error Lew <lewbloch@gmail.com> - 2011-09-23 17:56 -0700
Re: <identifier> expected error Roedy Green <see_website@mindprod.com.invalid> - 2011-09-25 00:13 -0700
csiph-web