CharTable -...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//******************************************************************** // CharTable.java Author: Lewis and Loftus // // Solution to Programming Project 3.14 //******************************************************************** / public class CharTable { //----------------------------------------------------------------- // Prints a table of Unicode characters and their numeric values.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: //-----------------------------------------------------------------public static void main (String args) { final int MIN = 32, MAX = 126, PER_LINE = 5; int count = 0; for (int chValue = MIN; chValue <= MAX; chValue++) { System.out.print (chValue + " " + (char)chValue + "\t"); count++; if (count % PER_LINE == 0) System.out.println(); } } }...
View Full Document

This note was uploaded on 05/17/2011 for the course COP 3530 taught by Professor Davis during the Spring '08 term at University of Florida.

Ask a homework question - tutors are online