This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I personally tried the code mentioned by Nadeem and it works . My take on this if you want to access InnerClass1 you need to first create the object of the class in which it is nested . The code correction provided by Nadeem does that .