char To Character convert

package com.primitives;

public class charToCharacter {

	public static void main(String args[])
	{
		char c = 'h';
		Character d = new Character(c);
		System.out.println("Value in char primitive is :"+c);
		System.out.println("Value of Character Object is :"+ d.charValue());
	}
}

 

By | 2012-05-02T07:50:43+00:00 May 2nd, 2012|Code Base|0 Comments

About the Author:

Leave A Comment