 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Giancarlo Ronci Guest
|
Posted: Thu May 25, 2006 10:55 am Post subject: Significato Import |
|
|
Ciao a tutti !!!
Premettendo che sono nuovo in Java,
potreste spiegarmi il significato pratico dei seguenti import ?
import java.lang.reflect.Method;
import java.net.URLEncoder;
import java.util.Locale;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
Grazie mille!!!
--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG |
|
| Back to top |
|
 |
Manuel T Guest
|
|
| Back to top |
|
 |
CarMas Guest
|
Posted: Thu May 25, 2006 12:07 pm Post subject: Re: Significato Import |
|
|
Giancarlo Ronci ha scritto:
| Quote: | potreste spiegarmi il significato pratico dei seguenti import ?
|
http://java.sun.com/docs/books/jls/third_edition/html/packages.html#7.5
An import declaration allows a static member or a named type to be
referred to by a simple name that consists of a single identifier.
Without the use of an appropriate import declaration, the only way to
refer to a type declared in another package, or a static member of
another type, is to use a fully qualified name.
Vedila un po' come... uhm, una scorciatoia. Invece di scrivere sempre
javax.servlet.http.HttpServletRequest per usarla, fai il relativo import
e puoi limitarti a scrivere HttpServletRequest.
Saluti
CarMas |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|