Descripción
La clase String representa un carácter char.
Sintaxis
public final class Character extends Object implements Serializable, Comparable<Character>
Constructores
Campos
- BYTES
- COMBINING_SPACING_MARK
- CONNECTOR_PUNCTUATION
- CONTROL
- CURRENCY_SYMBOL
- DASH_PUNCTUATION
- DECIMAL_DIGIT_NUMBER
- DIRECTIONALITY_ARABIC_NUMBER
- DIRECTIONALITY_BOUNDARY_NEUTRAL
- DIRECTIONALITY_COMMON_NUMBER_SEPARATOR
- DIRECTIONALITY_EUROPEAN_NUMBER
- DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR
- DIRECTIONALITY_EUROPEAN_NUMBER_TERMINATOR
- DIRECTIONALITY_FIRST_STRONG_ISOLATE
- DIRECTIONALITY_LEFT_TO_RIGHT
- DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING
- DIRECTIONALITY_LEFT_TO_RIGHT_ISOLATE
- DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE
- DIRECTIONALITY_NONSPACING_MARK
- DIRECTIONALITY_OTHER_NEUTRALS
- DIRECTIONALITY_PARAGRAPH_SEPARATOR
- DIRECTIONALITY_POP_DIRECTIONAL_FORMAT
- DIRECTIONALITY_POP_DIRECTIONAL_ISOLATE
- DIRECTIONALITY_RIGHT_TO_LEFT
- DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC
- DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING
- DIRECTIONALITY_RIGHT_TO_LEFT_ISOLATE
- DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE
- DIRECTIONALITY_SEGMENT_SEPARATOR
- DIRECTIONALITY_UNDEFINED
- DIRECTIONALITY_WHITESPACE
- ENCLOSING_MARK
- END_PUNCTUATION
- FINAL_QUOTE_PUNCTUATION
- FORMAT
- INITIAL_QUOTE_PUNCTUATION
- LETTER_NUMBER
- LINE_SEPARATOR
- LOWERCASE_LETTER
- MATH_SYMBOL
- MAX_CODE_POINT
- MAX_HIGH_SURROGATE
- MAX_LOW_SURROGATE
- MAX_RADIX
- MAX_SURROGATE
- MAX_VALUE
- MIN_CODE_POINT
- MIN_HIGH_SURROGATE
- MIN_LOW_SURROGATE
- MIN_RADIX
- MIN_SUPPLEMENTARY_CODE_POINT
- MIN_SURROGATE
- MIN_VALUE
- MODIFIER_LETTER
- MODIFIER_SYMBOL
- NON_SPACING_MARK
- OTHER_LETTER
- OTHER_NUMBER
- OTHER_PUNCTUATION
- OTHER_SYMBOL
- PARAGRAPH_SEPARATOR
- PRIVATE_USE
- SIZE
- SPACE_SEPARATOR
- START_PUNCTUATION
- SURROGATE
- TITLECASE_LETTER
- TYPE
- UNASSIGNED
- UPPERCASE_LETTER
Métodos
- charCount()
- charValue()
- codePointAt()
- codePointBefore()
- codePointCount()
- codePointOf()
- compare()
- compareTo()
- digit()
- equals()
- forDigit()
- getDirectionality()
- getName()
- getNumericValue()
- getType()
- hashCode()
- highSurrogate()
- isAlphabetic()
- isBmpCodePoint()
- isDefined()
- isDigit()
- isHighSurrogate()
- isIdentifierIgnorable()
- isIdeographic()
- isISOControl()
- isJavaIdentifierPart()
- isJavaIdentifierStart()
- isJavaLetter()
- isJavaLetterOrDigit()
- isLetter()
- isLetterOrDigit()
- isLowerCase()
- isLowSurrogate()
- isMirrored()
- isSpace()
- isSpaceChar()
- isSupplementaryCodePoint()
- isSurrogate()
- isSurrogatePair()
- isTitleCase()
- isUnicodeIdentifierPart()
- isUnicodeIdentifierStart()
- isUpperCase()
- isValidCodePoint()
- isWhitespace()
- lowSurrogate()
- offsetByCodePoints()
- reverseBytes()
- toChars()
- toCodePoint()
- toLowerCase()
- toString()
- toTitleCase()
- toUpperCase()
- valueOf()
Ejemplo
public static boolean esVocal(char c){
if ((Character.toLowerCase(c)=='a') || (Character.toLowerCase(c)=='e')
|| (Character.toLowerCase(c)=='i') || (Character.toLowerCase(c)=='o')
|| (Character.toLowerCase(c)=='u'))
return true;
else
return false;
Artículos
Vídeos Java
Disfruta también de nuestros artículos sobre Java en formato vídeo. Aprovecha y suscribete a nuestro canal.