Can I use the inner class of one containing class by the other class

Can I use the inner class of one containing class by the other class in the same package as the containing class
eg I have a class BST which has inner class Enumerator. Can I use the inner class from the other class in the same pacckage as BST?

Inner classes do not share the namespace of the package of the containing class. Also they are never visible to other classes in the same package.Believe what you want, then, if you're going to make up your own rules about how Java works. For people interested in how Java actually works, here is an example that shows why that assertion is false:
package com.yawmark.jdc;
public class Outer {
     public class Inner {
}And...
package com.yawmark.demo;
import com.yawmark.jdc.*;
public class Demo {
     public static void main(String[] args) {
          assert new Outer().new Inner() != null;
}~

Similar Messages

  • How can I use two differant iphones on one itunes

    I can i use two differant iphones on one itunes, and keep the content seperate?

    You can sync as many iphones/ipod/ipads as you like to one computer.
    Each is different and is recognized as such

  • Can I use two Time Capsules? one as an extension of my laptop (for music and video storage) and the other one to back up everything from the laptop and  Time Capsule (for music and videos)

    Can I use two Time Capsules? one as an extension of my laptop (for music and video storage) and the other one to back up everything from the laptop and  Time Capsule (for music and videos)

    Not via Time Machine.   It cannot back up from a network location.
    The 3rd-party apps CarbonCopyCloner and ChronoSync may be workable alternatives.
    EDIT:  And, if you're going to do that, you could back up from the Time Capsule to a USB drive connected to the TC's USB port.  Second TC not required.
    Message was edited by: Pondini

  • Can i use two apple tvs with one itunes account?

    can i use two apple tvs with one itunes account?

    yes and you can use more then 2
    just don't give them the same name

  • How can I use different iTunes accounts on one iPad?

    How can I use different iTunes accounts on one iPad?

    You can't, well not easily anyway.  The iPad is not meant as a multi account device. 
    You can Sign Out of your iTunes account in Settings->iTunes and App Stores->Apple ID->Sign Out
    However if you sign in with another ID and then download past purchases with it you will lock out the previous ID for 90 days. Which means it will not be able to be used on the iPad for 90 days. 

  • Can you use home share where there are 2 itunes on the same computer but under different user profiles?

    Can you use 'Home Share' where there are 2 itunes on the same computer, but under different user profiles?

    check out method one from this support article -> How to use multiple iPods, iPads, or iPhones with one computer

  • Can I use 30 APPLE TV with one Itunes in my computer?

    Can I use 30 APPLE TV with one Itunes in my computer?

    Welcome to the Apple Community.
    That depends on how you intend to use them.

  • 'File in Use' message is received when one user is in the report and another user tries to open the Excel template

    ‘File in Use’ message is received when one user is in the report and another user tried to open the excel template. how to make excel template shared for multiple users so the users don’t see the ‘File in Use’ message?

    Hi Febin,
    In addition to others’ replies, we can create a shared workbook and place it on a network location where several people can
    edit the contents simultaneously. For example, if the people in your work group each handle several projects and need to know the status of each other's projects, the group can use a shared workbook to track the status of the projects. All persons involved
    can then enter the information for their projects in the same workbook.
    Regarding how to do this,
     the following article can be referred to reference.
    Use a shared workbook to collaborate
    http://office.microsoft.com/en-in/excel-help/use-a-shared-workbook-to-collaborate-HP010096833.aspx
    Best regards,
    Frank Shen

  • HT4972 how come i can not use iOS 6 on my ipad 3 to get the youtube or pinerest app? it keeps giving me a message to use iOS5

    How come i can not use iOS 6 on my ipad 3 to get the youtube and pinerest app? i keep getting a message to update to iOS5 if i must use iOS5 how do i update to that one because it just took me 4 hours to figure out how to update to iOS6

    We have read that any apps that use the google map app (removed by ios6) will not work.  We have lost a great camping app for this reason, and have heard that some weather apps are not working either.  The company line we've been given is it's up to the app developer to rewrite their apps.  ***** doesn't it.

  • Can i Use two qery hints in one SQL(Oracle)?

    Hi,
    Can i Use two Query hints in one SQL(Oracle)? USE_HASH and No_Merge
    Thanks

    user10916886 wrote:
    Can I use like
    /*+ USE_HASH(X,Y) NO_MERGE(X) */
    will this work?Not really: NO_MERGE relates to mergeable views, not base tables. So whilst the USE_HASH may result in a hash join between the tables X and Y, USE_MERGE will be ignored for X.
    As hoek says, however, HINTs should be a last resort only, and if they're to be used at all you're best to stay with those that don't involve explicit objects, like ALL_ROWS, FIRST_ROWS_10, etc.
    user10916886 wrote:
    Im my database, if i don't use query hints. The expalin plan uses Nested loops, hence the query takes a lot of time.You would be better trying the ALL_ROWS hint here, instead of USE_HASH.
    Edit
    The optimizer, however, will have chosen NESTED LOOPs where it did because it believed that to be the most efficient data retrieval path with the information that it had to hand. So, if your statistics are comprehensive and up-to-date, yet the optimizer is continually opting for the less efficient plan, there's something else wrong, and HINTs are only masking that problem in the short-term.

  • Can I use Final Cut Studio 3 - notably FCP 7 - on the lastest MacBook Pro (non Retina) (Z0MV-27-4GB-512-HRA Apple 15" MacBook Pro/2.7GHz Quadcore Intel Core i7/8 GB) running OS 10.8?

    Can I use Final Cut Studio 3 - notably FCP 7 - on the lastest MacBook Pro (non Retina) (Z0MV-27-4GB-512-HRA Apple 15" MacBook Pro/2.7GHz Quadcore Intel Core i7/8 GB) running OS 10.8?  If not, is there a work-around if I have to revisit work done in FCS 3?

    I have it running on the latest NON-Retina MBP. And a good friend of mine has it running on his Retina model. Works fine.
    Henry English wrote:
    What if I have to revisit any one of them?  What if I try FCP X and find I prefer FCS 3?
    If you need to revisit them...that's why you install FCS3.  That's really the only reason I have that on my system, to revisit old projects, and to deal with clients who still use FCP 7.
    You really should look at moving on though...not sticking with FCP7. It's 4 years old...two years since it was EOL.  Adobe Premiere Pro CC is a very good FCP replacement...although I don't like their "rental" method of paying a subscription to use it.  Or you can buy Adobe CS6...but that just lacks enough to make it not quite tempting for me.  Premiere CC is spot on...but **** if I don't hate that subscription model.  But there's also Avid Media Composer.  But that doesn't do a lot of things that I used FCP and Adobe for...

  • Can i use airplay if my apple tv is connected to the network by ethernet cable?

    Can I use Airplay  if my Apple tv is connected to the network using an Ethernet cable as apposed to a WiFi connection.

    Thanks. I therefore have a problem as I cannot connect my ipad to the Apple TV. When trying to connect via Airplay my other apple tv appears (that is connected only via WiFi and that connects OK) but the Apple tv connected via the Ethernet does not show. I have looked at all the settings on both apple TV's and the only difference I can see is one is connected via WiFi and the other through Ethernet cable. Any ideas on what I need to check out?

  • Credit card number change, your company can not charge , so , what can I do ?because I buy one year plan , but the plan stop already  ,I can not change the credit card details.So, I need to buy one more year or can continous the paln with changing the cre

    credit card number change, your company can not charge , so , what can I do ?because I buy one year plan ,
    but the plan stop already  ,I can not change the credit card details.
    So, I need to buy one more year or can continous the paln with changing the credit number?

    Hello pen pang,
    if your Photoshop is a part of Creative Cloud you can use "Manage your membership and payments|Creative Cloud" at
    http://helpx.adobe.com/x-productkb/policy-pricing/membership-subscription-troubleshooting- creative-cloud.html >>>
    Payment & credit card >>> Help changing the credit card on your account >>> from there see what hints are listed.
    On the other hand I'm sure that you can use the recommended procedure with a "normal" PS too.
    If necessary and for further questions click through http://helpx.adobe.com/contact.html and if "open" please use the chat, I had the best experiences. I quote from Adobe's employee Preran: The chat button is activated as soon as there is an agent available to help.
    If you need these explanations in another language, please use "Change" at the end/bottom of the website from above
    Good luck!
    Hans-Günter

  • Can I use HP Pro 8600 with usb and wireless at the same time

    Can I use HP Pro 8600 with usb and wireless at the same time?  Sometimes I cannot get the wireless to work, it seems to be my laptop.  It would be nice if I could use the usb, but it doesn't work.  What should / can I do, if anything?
    Sam

    Hi,
    Same physical printer but when connecting to SAME computer using both USB and wireless it becomes two (logical) printers. Probably your default prnter is the wireless one, you have to select the right printer before print .
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • I would like to know how can I set songs in iTunes to play at different times automatically during the day. i.e. one song at 10am the other at 10:30am etc..

    I would like to know how can I set songs in iTunes to play at different times automatically during the day. i.e. one song at 10am the other at 10:30am etc..

Maybe you are looking for