|
"Nick Leonessa" <nleonessa@xxxxxxxxxxxxxxxxxxx> Sent by: java400-l-bounces@xxxxxxxxxxxx To: <JAVA400-L@xxxxxxxxxxxx> cc: Subject: Duplicate Class Names I need some help with a duplicate Class problem. For example purposes lets assume that I am using 2 imports import aimport.* import bimport.* Both have a class named "File" How would I distinguish in my code which one I want to use? As an example: File name = new File( e.getActionCommand() ); Thanks. Nick Nick, I think you will need to explicitly declare them at the point of instansiation. eg aimport.File name = new aimport.File(e.getActionCommand()); bimport.File name = new bimport.File(e.getActionCommand()); Hope this helps Rick Pezzimenti Programmer/Analyst Denso International Australia +613 9244-3627 ######################################################################### Attention: The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. Opinions expressed in this email and any attachment are those of the sender and not necessarily the opinions of DENSO. If you received this in error, please contact the sender and delete the material from any system and destroy any copies. The DENSO Australia Group of companies does not represent, warrant or guarantee that the integrity of this communication has been maintained nor that the communication is free of errors, virus or interference. ##########################################################################
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.