FileDocCategorySizeDatePackage
SampleModifier.javaAPI DocExample1314Tue Dec 12 18:58:48 GMT 2000None

SampleModifier

public class SampleModifier extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

      String s = new String();
      printModifiers(s);
   
public static voidprintModifiers(java.lang.Object o)

      Class c = o.getClass();
      int m = c.getModifiers();
      if (Modifier.isPublic(m))
         System.out.println("public");
      if (Modifier.isAbstract(m))
         System.out.println("abstract");
      if (Modifier.isFinal(m))
         System.out.println("final");