File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Inner class compile time errors

 
Venkat Ramsimha
Ranch Hand
Posts: 127
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
class OuterInnerImp
{
public static void main(String[] args)
{

}
public void method()
{
OuterInnerImp 0 = new OuterInnerImp();
OuterInnerImp.Inner i = O.new Inner();
i.inner();
}

class Inner
{
public void inner()
{
System.out.println("in the inner");
}
}
}

Hi All,
The above program is giving compile time errors can anybody provide with explanation for rectifying compile time errors

Thanks,
venkat
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Venkat Ramsimha:
...can anybody provide with explanation for rectifying compile time errors...

You used a zero rather than an uppercase "O" for your variable name. (In Java, names cannot start with digits.)
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic