Home Jsp Simple-jsp-example ASCII values table



ASCII values table
Posted on: March 12, 2008 at 12:00 AM
ASCII stands for American Standard Code for Information Interchange. Computers can only understand numbers, so an ASCII code is the numerical representation of a character such as @, #, $, and so on. ASCII was developed when non- printing characters were

ASCII values table

        

ASCII stands for American Standard Code for Information Interchange. Computers can only understand numbers, so an ASCII code is the numerical representation of a character such as @, #, $, and so on. ASCII was developed when non- printing characters were rarely used. 

In the  example given below we have include the description of the some non- printing characters.

 

The code of the program is given below:

 

 

<%@ page session="false" %>
<html>
<body>
<center>
<h1>Table of a ASCII value</h1>
<table border="1" cellpadding="0" cellspacing="0" bgcolor="#FDFFE6">
<%
   StringBuffer sb = new StringBuffer();
   sb.append("<tr>");
   sb.append("<th width=\"50\">&nbsp;</th>");
   for (int col = 0; col < 16; col++) {
      sb.append("<th>");
      sb.append(Integer.toHexString(col));
      sb.append("</th>");
   }
   sb.append("</tr>");
   for (int row = 0; row < 16; row++) {
      sb.append("<tr>");
      sb.append("<th>");
      sb.append(Integer.toHexString(row));
      sb.append("</th>");
      for (int col = 0; col < 16; col++) {
         char c = (char)(row * 16 + col);
         sb.append("<td width=\"32\" align=\"center\">");
         sb.append(c);
         sb.append("</td>");
      }
      sb.append("</tr>");
   }
   out.println(sb);
%>
</table>
</center>
</body>
</html>

Output of the Program:

Download this example.

Related Tags for ASCII values table:
ccomormformprintingscriptioincludesedformatprintcharasciiipnumbersnumberchangeintcharactercharactersnumericalcomputerforexamplectenumericwasstandardicalexaminformationpresentationcidescriptionedesrepresentationcanhangputusepedevinnormrarinfocalasstamntcandaclescomputercmerelxawhenwerxampssusoatracincishainfivmplpredevelopandaractcodcodereprscrssririprdthavbelostatiinforminformaticaicapleplprndonlyodeonomonlnon


More Tutorials from this section

Ask Questions?    Discuss: ASCII values table  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.