File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Inner class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Inner class" Watch "Inner class" New topic

Inner class

Juan Manuel Alberto de los Santos
Ranch Hand

Joined: Jun 26, 2008
Posts: 48
How can i make the dog bark ?

Thanks !
Santhosh Kumar
Ranch Hand

Joined: Nov 07, 2000
Posts: 242
This is how you would make it bark.

However if you want to execute this class from command line, you must change the visibility of main class to public, else JVM wouldn't be able to access it.
Bill Shirley
Ranch Hand

Joined: Nov 08, 2007
Posts: 457
and then execute the class as an application

Bill Shirley - bshirley -
if (Posts < 30) JavaRanchFAQ);
I agree. Here's the link:
subject: Inner class
It's not a secret anymore!