Source code for CharExample.java:

public class CharExample
{
	public static void main(String args[])
	{
		// CharExample
		char letter = 'a';
		System.out.println(letter);
	}
}

Output from CharExample.java:

a

--- Output Ends ---

NOTE:

You are reading previously generated output. You are not currently running the CharExample application at the momement. You need to compile and run the source code first.

To run this program:


Authors: Kevin Chu and Eric Brower
Copyright 2000 Prentice Hall PTR