Results 1 to 2 of 2
  1. #1
    justlearning is offline Member
    Join Date
    May 2008
    Posts
    2
    Rep Power
    0

    Default Private Classes Clarification

    I'm a little stumped on this.

    I am supposed to create a private class within my main class. I Then need to be able to reference that class from other classes. How do i call that private class and the methods within it from another class?

    I tried using an object in the class which i want to call from which references the main class. This didn't really work. It said the package did not exist.

    Thanks for your help... let me know if there is anything else you need to know.

  2. #2
    danielstoner's Avatar
    danielstoner is offline Senior Member
    Join Date
    Apr 2008
    Location
    Canada
    Posts
    191
    Rep Power
    7

    Default

    Is it private or an inner class? On my site at Little Tutorials you can find a series of articles about inner classes.

    If this is not what you need then please explain the problem better.
    Daniel @ [www.littletutorials.com]
    Language is froth on the surface of thought

Similar Threads

  1. How to implement private chat application using jsp
    By PortalTeam in forum JavaServer Pages (JSP) and JSTL
    Replies: 9
    Last Post: 02-19-2010, 10:49 PM
  2. Using a JAR from other classes
    By Joe2003 in forum Advanced Java
    Replies: 1
    Last Post: 01-02-2008, 07:08 PM
  3. Private main method
    By bugger in forum New To Java
    Replies: 1
    Last Post: 12-21-2007, 09:45 AM
  4. When do we use inner classes?
    By cruxblack in forum New To Java
    Replies: 5
    Last Post: 08-10-2007, 05:00 PM
  5. Question of private member
    By Felissa in forum Advanced Java
    Replies: 2
    Last Post: 06-28-2007, 09:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •