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:
10321
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 find the number of and sum of all integers greater than 100 and less than 200 that are divisible by 7
Abstract method
Dialog Boxes
Program to show the use of Switch Statement
An applet program to display Horizontal Color Bar
Program of telnet server - client
Program to Concat Strings
Final Variable
Program to show an example of using a Static Nested Class
Program to find a factorial of a given number
Program to calculate the frequency for different values of C starting from 0.01 to 0.1 in steps of 0.01
Program of inventory management and demonstrating interactive input and output
Protected Variable
Program to show an example of using multiple classes in a program
Program of an applet to illustrate BarChart
Comparison Operators
Program to show the use of Conditional (Ternary) Operator
An applet program to draw Polygon Graph with given data
Program to generate Fibonacci Series of a given number
File handling program to count number of characters in a file
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