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:
10683
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 display bank account
Program to show an example of Polymorphism
Program to show the comparing of Strings for equality
Corba program of game
Program of storing and retrieving integers using data streams on a single file
Arrays of Objects
Socket program of HTTP Server
Program to display attributes of a specified file
Program to show an example of using constructors in a class to initialize its data members
An applet program to perform merge sort
An applet program that displays Text at the center of the string which is passed as parameter
Program to copy the elements of an array into another array in reverse order and print them
Program to show the use of Nested If-Else Statements
An applet program to perform selection sort
Method Overriding
Program to Display Output in triangular shape
An applet program to display Vertical Color Bar
Write a class whose objects holds a current value and have a method to add that value, printing the new value
Program to show the use of operator (>>) Shift Right, propagating the sign bit from the left
Program of insertion sort
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