code: public static void main(String[] args) throws WikiApiException {
  
          // load a sample document (the contents are equal to "DarmstadtWikipediaArticle.txt")
          String documentText = TestFile.getFileText();
  		
  		// get a ParsedPage object
  		MediaWikiParserFactory pf = new MediaWikiParserFactory();
  		MediaWikiParser parser = pf.createParser();
  		ParsedPage pp = parser.parse(documentText);
  		
          // only the links to other Wikipedia language editions
          for (Link language : pp.getLanguages()) {
              System.out.println(language.getTarget());
          }
  
          //get the internal links of each section
          for (Section section : pp.getSections()){
              System.out.println("Section: " + section.getTitle());
  
              for (Link link : section.getLinks(Link.type.INTERNAL)) {
                  System.out.println("  " + link.getTarget());
              }
          }
      }
docs: Prints the targets of the internal links found in the page <i>Germany</i>.
  @param args
  @throws WikiApiException