Get Package Implementation Title in Java

Description

The following code shows how to get Package Implementation Title.

Example


/*ww w  .j  a  va2  s . c om*/
public class Main {
  public static void main(String args[]) {
    Package[] pkgs = Package.getPackages();
   
    for(int i=0; i < pkgs.length; i++)
      System.out.println(
             pkgs[i].getName() + " " +
             pkgs[i].getImplementationTitle()
      );
   
  }
}

The code above generates the following result.





















Home »
  Java Tutorial »
    Reflection »




Annotation
Array
Class
Constructor
Field
Generics
Interface
Method
Modifier
Package
Proxy