Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #1197
| From | Stanimir Stamenkov <s7an10@netscape.net> |
|---|---|
| Newsgroups | comp.lang.java.help |
| Subject | Re: error: class Tahmin is public, should be declared in a file named Tahmin.java |
| Date | 2011-10-06 01:13 +0300 |
| Organization | A noiseless patient Spider |
| Message-ID | <j6ikpq$1ik$1@dont-email.me> (permalink) |
| References | <b46b6925-15dc-4540-a598-1bcdaaeec41c@t16g2000yqm.googlegroups.com> |
Wed, 5 Oct 2011 14:52:00 -0700 (PDT), /Yakup/:
> Subject: error: class Tahmin is public, should be declared in a
> file named Tahmin.java
>
> How can i fix this error?
Please include all relevant information in the message body, next
time. Thanks.
You should have given a complete example which leads to the error,
but I could speculate you have declared two public classes in the
same file, like:
-----Whatever.java
public class Whatever {
// ...
}
public class Tahmin {
// ...
}
-----Whatever.java--
But you may included just public Tahmin class in a file named
differently from the class name like:
-----Whatever.java
public class Tahmin {
// ...
}
-----Whatever.java--
--
Stanimir
Back to comp.lang.java.help | Previous | Next — Previous in thread | Find similar
error: class Tahmin is public, should be declared in a file named Tahmin.java Yakup <yakup266@gmail.com> - 2011-10-05 14:52 -0700 Re: error: class Tahmin is public, should be declared in a file named Tahmin.java Lew <lewbloch@gmail.com> - 2011-10-05 15:12 -0700 Re: error: class Tahmin is public, should be declared in a file named Tahmin.java Knute Johnson <nospam@knutejohnson.com> - 2011-10-05 15:13 -0700 Re: error: class Tahmin is public, should be declared in a file named Tahmin.java Stanimir Stamenkov <s7an10@netscape.net> - 2011-10-06 01:13 +0300
csiph-web