System.out.printf(’%c’, char ch )

Tuesday, August 4th, 2009

/**
 Output:

 char value is a
 
 * */

public class MainClass {
  public static void main(String args[]) throws Exception {

    //char value is a
    System.out.printf("char value is %c\n", ‘a’ );

  }
}