Partager via


Character(Char) Constructor

Definition

Constructs a newly allocated Character object that represents the specified char value.

[Android.Runtime.Register(".ctor", "(C)V", "")]
public Character (char value);
[<Android.Runtime.Register(".ctor", "(C)V", "")>]
new Java.Lang.Character : char -> Java.Lang.Character

Parameters

value
Char

the value to be represented by the Character object.

Attributes

Remarks

Constructs a newly allocated Character object that represents the specified char value.

This member is deprecated. It is rarely appropriate to use this constructor. The static factory #valueOf(char) is generally a better choice, as it is likely to yield significantly better space and time performance.

Java documentation for java.lang.Character.Character(char).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to