Welcome -
Guest!
Login
/
Register Now
|
Search:
Home
Articles
Forum
Interview FAQ
Activities
News
Videos
Poll
Links
People
Groups
Java Articles
Submit Article
Home
»
Articles
»
Java
»
Fundamental
RSS Feeds
Character Wrapper Class
Posted By:
Allan Bailey
Category:
Java
Views:
10048
This article explains about Character wrapper class in java.
Character wrapper class
is used to wrap primitive data type char value in an object.
Examples of Character Wrapper Class
Example 1 : Convert char data type to Character object
public class charToCharacter
{
public static void main(String[] args)
{
char c = 'a';
Character cObj = new Character(c);
System.out.println(cObj);
}
}
Output
a
Share:
Previous Post:
Double Wrapper Class
Next Post:
Boolean Wrapper Class
Didn't find what you were looking for? Find more on
Character Wrapper Class
Or get
search suggestion and latest updates
.
Allan Bailey
author of Character Wrapper Class is from Houston,
United States
.
View All Articles
Related Articles and Code:
Boolean Wrapper Class
Integer wrapper class
Wrapper Classes
Byte Wrapper Class
Short Wrapper Class
Long Wrapper Class
Float Wrapper Class
Double Wrapper Class
Program to show an example of Calling a Base Class Method from a Derived Class
Program of displaying product inventory by converting one class to another class
Program to illustrate over-riding of base class member function in a derived class
Program to show an example of using a Static Nested Class outside the Top-Level Class
Program of class to class conversion
Program to swap even positioned characters with odd positioned characters in a given string
Program to read a string , character by character and display the same
To read string character by character and display them
CREATING A CLASS ACCOUNTS FROM WHICH ARE DERIVED TWO CLASSES CURRENT AND SAVINGS AND THEN ASK THE USER FOR THE TYPE OF ACCOUNT HE WANTS TO CREATE
PROGRAM OF BASIC TO CLASS CONVERSION
Program of class to basic conversion
Preparation of the rank list of a class of students using pointers and two dimensional arrays
Other Interesting Articles in Java:
Program to generate Fibonacci Series of a given number
Program that accepts a shopping list of items from the command line and stores them in a vector. Also provide facility to perform operation
Variable modifiers in java
Private Constructor
Program to show an example of Calling a Base Class Method from a Derived Class
Program of insertion sort
Backslash Codes
Program to show some properties of StringBuffer object
Program to check the start and end of a String
An applet program to display sum of two number of textField
Program to display attributes of a specified file
Program to read rollno, marks of sub1,sub2 and sub3 and on basis of that display result
Constructor Overloading
An applet program that creates string dynamically and displays it
Program which simulate the dictionary in java
Program to show the use of If Statement
Program to display Floyd's Triangle of a numbers
Program to show insertion of StringBuffer, String objects and other Basic Data Types into a StringBuffer object
Write a class whose objects holds a current value and have a method to add that value, printing the new value
File Handling- JAVA
Please enter your Comment
*
*
Comment should be atleast 30 Characters.
Please put code inside [Code] your code [/Code].
Please login to post comment
No Comment Found, Be the First to post comment!
Java
View All
Applet programs
Arrays
Comparison Operator
Corba
Data file structure
File Handling
Fundamental
Homework Help
Interview FAQ
Networking Technology
Operators
Remote Method Invocati...
Socket Programming
Assembly Language
Artificial Intelligence
C Programming
C++ Programming
Visual C++
OOAD
Cobol
SQL Server
Asp.net MVC
Rest and WCF Services
Entity Framework
Knockout.Js
Unix / Linux / Ubuntu
Networking
OOPs Concept
HTML
Dos
SQL
System Analysis & Design
Gadgets
Internet
CSS
Javascript
.Net Framework
Asp.net
C#
VB.Net
Python
Perl
Oracle
Software Engineering
RDBMS Terms
AJAX Framework
Design Pattern
UML
WPF
WCF
SEO
PowerShell
Visual Studio
WWF
BizTalk Server
Azure
General
Testing
Online Certifications
PHP
My SQL
LinQ
Project Management
Silverlight
XML
MS Office
Windows OS
DHTML
Sharepoint