How can i create a instance of the following Class and access its methods. Example:  public class A {     public static class B {         public static class C {             public static class D {                 public static class E {                     public void methodA() {}                     public void methodB(){}                 }             }         }     } }
What is the main difference between an inner class and a static nested class in Java? Does design / implementation play a role in choosing one of these?
How to guess a curve distribution from count data I have a sample composed by 2500 count data values. I've plotted in R the corresponding histogram and ecdf. I've run the One-Sample Kolmogorov-Smirnov test to check if the distribution is either exponential or poisson, but I got negative results.  Is it possible that the One-Sample Kolmogorov-Smirnov test, it's not the correct test to work with this count data.  What is the best way to identify a distribution for this kind of data? Google Spreadsheets: IF not working I have problems with my IF command in Google Sheets. If gives #ERROR! all the time. See this simple test:    Not even if I put in the number directly and avoid references:    Am I using the IF wrong? Or what could such a problem be? This example is from a new document. How to setup two completely separate partitions on one SSD I have a MacBook with 1TB SSD. I want to have two separate partitions with two independent macOS installations. I want to make sure that none of the partitions have any kind of possibility to interact with the other, I want them to be as separated as if they were physically separate. Is this achievable with, for example, FileVault for each of them? Edit: My question is neither &quot;how can I install two different macOS versions on two different partitions on one SDD&quot;, neither &quot;how do I use FileVault&quot;, etc. I know how to do all of that. I want to make sure that there is no interaction between the partitions possible. Can this be made sure with the above approach? Is it sufficient? Communities list is counting my reputation wrong on some sites I have 101 rep on  and am not suspended there. But the site switcher thinks I only have 1 rep there:     I noticed this after I .   To test this, I just added Expats and Reverse Engineering to my site switcher list. On both of those sites I have 101 rep and am not suspended. Results:    Huh? From , page 209:     Dividends   Dividends are income paid by investments. Both bond funds   and stocks can  pay dividends. Bond fund dividends (the interest paid   by the individual  bonds in a fund) tend to be higher (as a percentage   of the amount you have  invested in a fund). When a dividend   distribution is made, you can receive  it as cash (which is good if   you need money to live on) or reinvest it into  more shares in the   fund. In either case, the share price of the fund drops to  offset the   payout. So if you’re hoping to strike it rich by buying into a bunch    of funds just before their dividends are paid, don’t bother. You’ll   just end up  paying more in income taxes.    It is talking about mutual funds.   I've never played with stocks.  However, I would like to know more about it.  Does the bold text imply the stock price will drop because of a company giving out a dividend? `test` and `[` - different binaries, any difference? I noticed while answering another question that test and [ are different binaries, but the [ manpage pulls up test's. Besides the requirement for an ending ], is there any difference?  If not, why are they separate binaries instead of being symlinked? (They are also bash builtins, and bash doesn't show a difference either.) Is Morocco currently safe to visit despite the Ebola outbreak? I'm travelling to Morocco over the Easter period, and while I am aware that the current Ebola outbreak is mainly in Guinea, Liberia and Mali, and would have to cross the Sahara to get to Morocco, is it wise for me to go to Morocco at this time?  What are some basic precautions I can take in the case that the Ebola virus travels to Morocco? I know I can become root (super user) via the su command but I have to authorize it after entering the commands. Is there a way I can become root and authorize (with password) in one line How do you convert a numerical number to an Excel column name in C# without using automation getting the value directly from Excel.  Excel 2007 has a possible range of 1 to 16384, which is the number of columns that it supports. The resulting values should be in the form of excel column names, e.g. A, AA, AAA etc. Help finding a combinatorial proof of $k {n \choose k } = n {n - 1 \choose k -1}$ Help finding a combinatorial proof of $k {n \choose k } = n {n - 1 \choose k -1}$  I have expanded it this far:  $$\frac{k \cdot n!}{k!(n-k)!} = \frac{n \cdot (n-1)!}{(k-1)!(n-k)!} $$  but then I am stuck from where to go from there. Given a dictionary, how can I find out if a given key in that dictionary has already been set to a non-None value?  I.e., I want to do this:  my_dict = {}  if (my_dict[key] != None):   my_dict[key] = 1 else:   my_dict[key] += 1   I.e., I want to increment the value if there's already one there, or set it to 1 otherwise. How do I sudo a command in a script without being asked for a password? Turning off auto-maximizing of windows in 14.04 I know this has been asked for other Ubuntu releases, but the solutions posted are not working for me in 14.04. I've installed CCSM and turned off the grid option, but the windows still maximize when dragging to the top of the screen. I've dealt with it for a while but it's getting rather obnoxious. Anyone else had this problem and come across a solution?  EDIT:  This is happening in Gnome Classic, but not Gnome 3 Is WD-40 really bad to apply on bikes? I was told so but still see people doing that.   Also I saw WD-40 launching their new products of bike lubricant and degreaser. Did anybody try those? How do I get the size of a java.sql.ResultSet? Shouldn't this be a pretty straightforward operation? However, I see there's neither a size() nor length() method. I have been using Ubuntu 12.04 for quite a while and have never had a problem come at me out of the blue like this. I'm trying to install python 3.2 on my Ubuntu system and every time I run the code to compile the python source, I get this error:  'Command 'sudo' is available in '/usr/bin/sudo' The command could not be located because '/usr/bin' is not included in the PATH environment variable. sudo: command not found'   I've also tried running gksudo command to view what my environment shows but I pretty much get the same error. It would be similar to trying to be extremely careful or precise.   In French it would be "application", For example: "Qui est fait avec application".   Example usage:      John worked with ________. or ...it was done with _______. Let $U_1, \cdots, U_n$ be $n$ i.i.d continuous uniform random variables on $(0,1)$ and their order statistics be $U_{(1)}, \cdots, U_{(n)}$.  Define $D_i=U_{(i)}−U_{(i−1)}$ for $i=1, \cdots, n$ with $U_0=0$.  I am trying to figure out the distribution $\lim_{n\to\infty} \#\{i = 1, \cdots, n \mid nD_i \geq z\}/n$. This must be very well known, but I cannot find a reference. I changed the /etc/environment to add more directories to the PATH variable. But looks like $PATH in double quotes were not expanded and I could find any command from the shell and /usr/bin/command-not-found is run.  $ cat /etc/environment  PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" PATH="$PATH:/home/user/technical/java/maven/bin" JAVA_HOME="/home/user/technical/java/jdk7"   so from the tty,  $ echo $PATH $PATH:/home/user/technical/java/maven/bin   why did not the expansion happen? How many times can an Australian leave and re-enter South Africa (90 days at a time without a visa) in a year, and do they need to be out of the country for a certain period of time before they re-enter?  I want to be in South Africa for as long as I can, however as an Australian without a visa I can only stay for 90 days at a time. What I would like to do is simply leave South Africa and go to another country in Africa for a few days, before returning with a new 90 day allowance.    Is this possible, or must I wait a certain period before re-entering South Africa/is there a limit to the amount of times I can do this in one year?