<!-- Collection of code snippets by Arne Vajhøj -->
<!-- (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) -->
<%@ page import="java.util.*" %>
<%         
      ArrayList lst = new ArrayList();
      lst.add("ccc");
      lst.add("bb");
      lst.add("a");
      Collections.sort(lst);
      for(int i=0;i<lst.size();i++)
      {
          %>
          <input type="checkbox" name="xyz" value="<%=lst.get(i)%>"><%=lst.get(i)%>
          <%
      }         
 %>
