[1139] in java-interest
My first day -- some questions...
daemon@ATHENA.MIT.EDU (Scot Shinderman)
Thu Aug 24 23:48:25 1995
Date: Tue, 22 Aug 1995 15:38:25 -0700
To: java-interest@java.sun.com
From: sshinder@adobe.com (Scot Shinderman)
After programming java for one whole day I have run across a couple of
problems that I can't answer with the online help.
Most of these questions relate to packages and the naming rules that they
inspire. Is there a set of docs about this?
If I add the single line:
package test;
then I can no longer run a java program on the command line -- it says:
Can't find class Steam.
I guess it's changing the name of the class.
Also, how do i get one class to use another when both are mine.. for example...
this is pooh.java...
public class Pooh
{
public Pooh()
{
System.out.println( "Pooh constructor running\n" );
}
public void Init()
{
System.out.println( "Pooh Init running\n" );
}
};
this is steam.java...
import Pooh;
public class Steam
{
public static void main( String args[] )
{
System.out.println( "Steam Main\n" );
Pooh p = new Pooh();
p . Init();
}
};
compiling tells me that Class Pooh not found in type declaration.
any ideas?
thanks, and please respond to sshinder@adobe.com
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com