call an Inner Class

Hi,
how can i call my new class from my jsp page?

public class ClassContainningTheInnerClass{
...

class CouutryComparator implements Comparator {
        
              public int compare(Object obj1, Object obj2)
        { IpInfoBean bean1 = (IpInfoBean) obj1;
        IpInfoBean bean2 = (IpInfoBean) obj2;
        return ( bean1.getPercentage() ).compareToIgnoreCase( bean2.getPercentage() ); }
         }
      
}
komlaaaAsked:
Who is Participating?
 
fargoCommented:
OClass > Outer class
IClass > Inner class

OClass oclass = new OClass();
OClass.IClass innerClass = oclass.new IClass();

What i don't understand from your code is , do u mean CountryComparator is inner class?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.