Results 1 to 3 of 3
Thread: import statement.
- 02-07-2008, 09:58 PM #1
Member
- Join Date
- Feb 2008
- Posts
- 6
- Rep Power
- 0
import statement.
Hello All,
when using the import statement does it referrer to a directory or something else(a package) ?
I have been looking at some code which has:
I have downloaded the source for JAMA but i don't know where to put it on my machine(WinXP) so that I will be able to use the same statement to use it.Java Code:import Jama.util.*;
Can anyone help?
p.s. coming from C++ does the "import" statement relate to the "include" statement?
- 02-07-2008, 10:58 PM #2
Have a look-see here.
Import is similar to C++'s include, but with C++ the included file is well, obviously - actually included, whereas with Java, the imported package is made available rather than included.
Hope this helps.Vote for the new slogan to our beloved Java Forums! (closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice? Vote now!
Got a little Capt'n in you? (drink responsibly)
- 02-08-2008, 12:34 AM #3
Member
- Join Date
- Feb 2008
- Posts
- 6
- Rep Power
- 0
Hello that that helps on a conceptual level.
On a practical level i found i could (with a Netbeans project) put all the source files from the JAMA source in a folder project_folder\src\jama and then add this folder to the project's source-files-folder in project options and then use the import statement:
Java Code:import Jama.*;
Similar Threads
-
error with import java.io.*
By osval in forum New To JavaReplies: 5Last Post: 05-13-2010, 05:03 PM -
how to import a picture into an applet
By cecily in forum Java AppletsReplies: 2Last Post: 01-15-2010, 08:51 PM -
how to import jface in java swt
By rajaletchumy in forum New To JavaReplies: 1Last Post: 08-08-2007, 12:31 AM -
I can't import javax.mail
By katie in forum New To JavaReplies: 2Last Post: 08-04-2007, 05:05 PM -
Statement or Prepared Statement ?
By paty in forum JDBCReplies: 3Last Post: 08-01-2007, 04:45 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks