[5925] in java-interest

home help back first fref pref prev next nref lref last post

Re: tutorial question

daemon@ATHENA.MIT.EDU (Jim Graham)
Tue Mar 5 01:48:45 1996

Date: Mon, 4 Mar 1996 21:24:31 -0800
From: flar@bendenweyr.Eng.Sun.COM (Jim Graham)
To: java-interest@java.Eng.Sun.COM, blucht@sound.net
Cc: lemay@lne.com, virtual@rendezvous.com


Hi Brad,

> Here is the example, as I have typed it in:
> 
> public static void main (String args[]) {
> 	[contents deleted for brevity]
> }
> class Motorcycle {
> 	[contents deleted for brevity]
> }

All methods must be a part of some class.  You are trying to create
a method outside of a class definition.  Try moving the whole main()
method inside the "class Motorcycle {}" body.

				...jim
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post