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

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 2011-10-05 15:12 -0700
Organization http://groups.google.com
Message-ID <31730701.1494.1317852741814.JavaMail.geo-discussion-forums@prho12> (permalink)
References <b46b6925-15dc-4540-a598-1bcdaaeec41c@t16g2000yqm.googlegroups.com>

Show all headers | 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