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:
10182
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 declare, initialize and print an array of integers
Corba program to develop a simple calculator with addition, subtraction, multiplication and division capabilities, data collection from client side
Program, which creates a three thread. One thread display the numbers from 1 to 5, second thread display the square root of that number etc
Servlet which takes input from an HTML client page and calculates and outputs the premium amount
Method inheritance and use of Super keyword to access superclass method
An applet program of showing new document using showDocument(URL) method
Program that takes a long sentence and a character from the client and count the occurrence of the character in the sentence at the server side
File handling program to copy bytes from one file to another
CORBA program for displaying the date and time of the server machine, client machine and the difference between these two date and time
Byte Wrapper Class
Program to display text
Program which creates an Array of character. Make one function with one argument as a character and that function throw a user defined exception
Develop a simple calculator with addition, subtraction, multiplication and division capabilities, data collection from client side, executed on server
Program that will read real number from the keyboard and print the following output in one line: small Integer not less The Given Number Largest Int
Program to display following things on the client machine a)date and time of the server machine b)date and time of the client machine and difference
Word list program that reads a text file and makes an alphabetical list of all the words in that file. The list of words is output to another file
Develop a game application in CORBA for which the player will guess a number between 1 to 100, which will be compared to the random number generated b
Program to show the use of Logical OR Operator (|) in If Statements
Program to show the use of operator (>>) Shift Right, propagating the sign bit from the left
Program that accepts a shopping list of items from the command line and stores them in a vector. Also provide facility to perform operation
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