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


Groups > comp.lang.java.programmer > #7279

Re: Why does Eclipse find error in simple "public static void main( String[] args) { } instruction?

From markspace <-@.>
Newsgroups comp.lang.java.programmer
Subject Re: Why does Eclipse find error in simple "public static void main( String[] args) { } instruction?
Date 2011-08-21 13:49 -0700
Organization A noiseless patient Spider
Message-ID <j2rr1e$b2v$1@dont-email.me> (permalink)
References <4e514360$0$6555$9b4e6d93@newsspool4.arcor-online.net>

Show all headers | View raw


On 8/21/2011 10:41 AM, Gianni Galore wrote:
> Am I crazy?


Possibly.  I'd suggest consulting a mental health professional if you're 
concerned about it. ;) (j/k)

Also, most Java programmers know that methods can't be bare, they need 
to be enclosed in a class definitions.  Two seconds with the Java 
tutorial would have reminded you.

> package aaa.bbb;
>

public class Main {

>   public static void main( String[] args) {
>     System.out.println("hello");
>   }

}

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


Thread

Why does Eclipse find error in simple "public static void main( String[] args) { } instruction? ggal@osgitest.org (Gianni Galore) - 2011-08-21 17:41 +0000
  Re: Why does Eclipse find error in simple "public static void main( String[] args) { } instruction? Patricia Shanahan <pats@acm.org> - 2011-08-21 11:05 -0700
  Re: Why does Eclipse find error in simple "public static void main( String[] args) { } instruction? markspace <-@.> - 2011-08-21 13:49 -0700

csiph-web