The Artima Developer Community
Sponsored Link

Java Answers Forum
User defined packages

2 replies on 1 page. Most recent reply: Jan 11, 2004 8:40 PM by mausam

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Kelly Jordan

Posts: 1
Nickname: kellyj
Registered: Jan, 2004

User defined packages Posted: Jan 10, 2004 5:03 AM
Reply to this message Reply
Advertisement
can anyone tell me the exact syntax to import the user-defined packages??


Kul

Posts: 2
Nickname: dilse4460
Registered: Jan, 2004

Re: User defined packages Posted: Jan 11, 2004 3:36 AM
Reply to this message Reply
include ur folder/package in every files related to package. Just define the path to that package to every files putting inside package.

mausam

Posts: 243
Nickname: mausam
Registered: Sep, 2003

Re: User defined packages Posted: Jan 11, 2004 8:40 PM
Reply to this message Reply
like ur package is com.test;

and file name is TestClass

so if u want to use TestClass in ur file TestClassUse

then use
import com.test.TestClass;

or

import com.test.*;

Flat View: This topic has 2 replies on 1 page
Topic: any body know ..... Previous Topic   Next Topic Topic: Contd....of join()???

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use