Subj : Re: java error To : comp.programming From : akarl Date : Thu Aug 04 2005 02:28 pm Alex5222@everestkc.net wrote: > I've just started programming in java and when I try to compile the > hello world program that came off of the java tutorial and it gave me > the following error: > > helloworldapplet.java:8: class HelloWorld is public, should be declared > in a file named HelloWorld.java > public class HelloWorld extends Applet { > ^ > 1 error > > Here's the code for that program: > > import java.applet.*; > import java.awt.*; > > /** > * The HelloWorld class implements an applet that > * simply displays "Hello World!". > */ > public class HelloWorld extends Applet { > public void paint(Graphics g) { > // Display "Hello World!" > g.drawString("Hello world!", 50, 25); > } > } Okay, I have a question about Java. So, where can I ask this question? Ah, probably in a newsgroup. Is there any newsgroup related to Java? Probably. But, how do I find it? Let's see, Java is a programming language and programming languages are a computer thing. Mm... Java, programming languages, computers. Let's reverse that: computers, programming languages, Java. Ah! comp.lang.java August .