Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.help > #1195

Re: error: class Tahmin is public, should be declared in a file named Tahmin.java

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.250.MISMATCH!news-out.readnews.com!news-xxxfer.readnews.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
From Lew <lewbloch@gmail.com>
Newsgroups comp.lang.java.help
Subject Re: error: class Tahmin is public, should be declared in a file named Tahmin.java
Date Wed, 5 Oct 2011 15:12:21 -0700 (PDT)
Organization http://groups.google.com
Lines 15
Message-ID <31730701.1494.1317852741814.JavaMail.geo-discussion-forums@prho12> (permalink)
References <b46b6925-15dc-4540-a598-1bcdaaeec41c@t16g2000yqm.googlegroups.com>
Reply-To comp.lang.java.help@googlegroups.com
NNTP-Posting-Host 2620:0:1000:437c:224:d7ff:fe69:5838
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
X-Trace posting.google.com 1317852742 26180 127.0.0.1 (5 Oct 2011 22:12:22 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Wed, 5 Oct 2011 22:12:22 +0000 (UTC)
In-Reply-To <b46b6925-15dc-4540-a598-1bcdaaeec41c@t16g2000yqm.googlegroups.com>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=2620:0:1000:437c: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:1195

Show key headers only | View raw


On Wednesday, October 5, 2011 2:52:00 PM UTC-7, Yakup wrote:
> How can i [sic] fix this error?

Please do not rely on the subject alone to convey your question.  The body of your post should be self-contained.

As for the topic, "error: class Tahmin is public, should be declared in a file named Tahmin.java", the error message tells you how to fix it.  The class should be declared in a file named "Tahmin.java".  Do that.

In the future, you might want to provide enough detail in your question to diagnose exactly what you did wrong.  In this case, we don't know if you spelled the file name wrong, spelled the class name wrong, didn't compile with a good class path, or what.

Provide enough information for us to reliably recreate the issue.

http://sscce.org/

-- 
Lew

Back to comp.lang.java.help | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

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