title: Enumeration<> Enumeration difference
body: <p>I'm a biginner in JSP and I'm confused about the difference between 
  <code>Enumeration</code> and <code>Enumeration&lt;type&gt;</code>
  I'm learning with this Korean book and the example source in it says <code>Enumeration</code>
  with the eclipse neon version it doesn't work. It works only when it write
  <code>Enumeration&lt;String&gt;</code>. Can someone tell me the difference?</p>
  
  <pre><code>&lt;%@page import="java.util.Enumeration"%&gt;
  &lt;%@ page language="java" contentType="text/html; 
  
  charset=UTF-8"pageEncoding="UTF-8"%&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
  &lt;title&gt;헤더 목록 출력&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;% 
      Enumeration&lt;String&gt; headerEnum = request.getHeaderNames();
      while(headerEnum.hasMoreElements()){
          String headerName = (String)headerEnum.nextElement();
          String headerValue = request.getHeader(headerName);
  
  %&gt;
  &lt;%=headerName %&gt; = &lt;%=headerValue %&gt; &lt;br&gt;
  &lt;%
      }
  %&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>