Example | java.lang package | Character class | charValue() method
![]() |
java.lang.Character.charValue() |
Signature:
public char charValue()
Description:
Returns the value of this Character object.
Since:
JDK1.0
Example:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javamultiplex.java.lang.character; | |
/** | |
* @author Rohit Agarwal | |
* @category java.lang/Character/charValue() | |
* @version 1.0 | |
*/ | |
public class CharValue { | |
public static void main(String[] args) { | |
Character character = new Character('A'); | |
char ch = character.charValue(); | |
System.out.println(ch); | |
Character character2 = new Character('b'); | |
char ch2 = character2.charValue(); | |
System.out.println(ch2); | |
Character character3 = new Character('4'); | |
char ch3 = character3.charValue(); | |
System.out.println(ch3); | |
Character character4 = new Character('@'); | |
char ch4 = character4.charValue(); | |
System.out.println(ch4); | |
} | |
} |
Example | java.lang package | Character class | charValue() method
Reviewed by Rohit Agarwal
on
8/29/2017
Rating:

No comments:
Please provide your valuable comments. If you have any suggestion please share with me I will work on it and if you have any question or doubt please ask, don't hesitate. I am your friend, i will clarify all your doubts.