Sub: PACKAGE IMPORT
Please do not SHOUT* at us. We are not *deaf*.
> I am a amateur Jav programmer currenlty in learning phase.
A good group for beginners is comp.lang.java.help
> I have a little problem.
> I have made a package 'thing'
...
> {
> System.out.println("BHARAT MEHTA I AM FUNCTION#1");
* Again with the SHOUTING.
Try cutting back on coffee.
....
> The code gives an error on compilation saying inaccessible class or
> package not found.
Please copy/paste the first lines of compile
or run-time error messages.
> I have also done the classpath setting for providing the location of
> package to java compiler.
That is (probably) not the problem here.
> But its still not working.
> PLease help???????????//
Please fix that sticky '?' key, then immediately
work through this example of using classes in
(and out of) packages.
<http://rabbitbrush.frazmtn.com/classpath.html>
Does that fix it, for you?
Andrew T.
Lew - 02 Jan 2007 19:43 GMT
BHARAT wrote:
>> public class test
Class names should begin with an upper-case letter, have each word part begin
with an upper-case letter, and otherwise comprise lower-case letters.
For example:
class Test
class HasALongerName
- Lew