|
-
September 19th, 2000, 09:26 AM
#1
how to buils and register an package??
Hi:
Any one can tell me how to build and use an package??
TX !
wky086
-
September 19th, 2000, 09:37 AM
#2
Re: how to buils and register an package??
Hi,
create a new package:
1. create a new class
2. at the very beginning (top of the source file!) insert (for example) "package com.myCompany.packageName" (of course you can use another name for your package but they say you should use the name of the company domain...)
3. write your code
use a package:
use "import com.myCompany.packageName.*;" or "import com.myCompany.packageName.ClassName;"
Hope this helps,
Andi
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|