public class Main{
public static void main(String[] args) {
char c = 'C';
Character car = new Character(c);
if(car.isUpperCase(c)){
System.out.println("\""+c+"\" esta en mayusculas");
}
if(car.isLowerCase(c)){
System.out.println("\""+c+"\" esta en mayusculas");
}
if(car.isLetter(c)){
System.out.println("\""+c+"\" es una letra");
}
if(car.isDigit(c)){
System.out.println("\""+c+"\" es un digito");
}
if(car.isLetterOrDigit(c)){
System.out.println("\""+c+"\" es un digito o letra");
}
if(car.isWhitespace(c)){
System.out.println("\""+c+"\" es un espacio en blanco");
}
if(car.isSpaceChar(c)){
System.out.println("\""+c+"\" es un espacio blanco");
}
if(car.isJavaIdentifierStart(c)){
System.out.println("\""+c+"\" inicia como un identificador de Java");
}
if(car.isJavaIdentifierPart(c)){
System.out.println("\""+c+"\" tiene una parte de identificador de Java");
}
}
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.