Determine character is uppercase

Complete source code below will show you, how to determine character is uppercase or not in java.

******************************************************************
COMPLETE SOURCE CODE FOR : DetermineCharacterIsUppercase.java
******************************************************************


public class DetermineCharacterIsUppercase
{
public static void main(String[]args)
{
//Create a uppercase character using char with value(B)
//You can try change it's value to letter(b)
char a='B';

//Determine created character is uppercase or not
//using method isUpperCase from class Character.
//isUpperCase is a static method, so we don't need to create object when
//we want to use it.
if(Character.isUpperCase(a))
{
//Print (It is an uppercase) if character is an uppercase
System.out.println("It is an uppercase");
}
else
{
//Print (It is not an uppercase) if character is not an uppercase
System.out.println("It is not an uppercase");
}
}
}


******************************************************************
JUST COMPILE AND EXECUTE IT
******************************************************************

Determine character is lowercase

Complete source code below will show you, how to determine character is lowercase or not in java.

**********************************************************************
COMPLETE SOURCE CODE FOR : DetermineCharacterIsLowercase.java
**********************************************************************


public class DetermineCharacterIsLowercase
{
public static void main(String[]args)
{
//Create a lowercase character using char with value(b)
//You can try change it's value to letter(B)
char a='b';

//Determine created character is lowercase or not
//using method isLowerCase from class Character.
//isLowerCase is a static method, so we don't need to create object when
//we want to use it.
if(Character.isLowerCase(a))
{
//Print (It is a lowercase) if character is a lowercase
System.out.println("It is a lowercase");
}
else
{
//Print (It is not a lowercase) if character is not a lowercase
System.out.println("It is not a lowercase");
}
}
}


**********************************************************************
JUST COMPILE AND EXECUTE IT
**********************************************************************

Determine character is letter or digit

Complete source code below will show you, how to determine character is letter or digit in java.

*****************************************************************
COMPLETE SOURCE CODE FOR : DetermineCharacterIsLetterOrDigit.java
*****************************************************************


public class DetermineCharacterIsLetterOrDigit
{
public static void main(String[]args)
{
//Create a character using char with value(3)
//You can try change it's value to letter(k)
char a='3';

//Determine created character is letter or digit
//using method isLetterOrDigit from class Character.
//isLetterOrDigit is a static method, so we don't need to create object when
//we want to use it.
if(Character.isLetterOrDigit(a))
{
//Print (It is a letter or a digit) if character is a letter or digit
System.out.println("It is a letter or a digit");
}
else
{
//Print (It is not a letter or digit) if character is not a letter or digit
System.out.println("It is not a letter or digit");
}
}
}


*****************************************************************
JUST COMPILE AND EXECUTE IT
*****************************************************************

Determine character is letter or not

Complete source code below will show you, how to determine character is letter or not in java.

************************************************************
COMPLETE SOURCE CODE FOR : DetermineCharacterIsLetter.java
************************************************************


public class DetermineCharacterIsLetter
{
public static void main(String[]args)
{
//Create a character using char with value(m)
char a='m';

//Determine created character is letter or not
//using method isLetter from class Character.
//isLetter is a static method, so we don't need to create object when
//we want to use it.
if(Character.isLetter(a))
{
//Print (It is a letter) if character is a letter
System.out.println("It is a letter");
}
else
{
//Print (It is not a letter) if character is not a letter
System.out.println("It is not a letter");
}
}
}


************************************************************
JUST COMPILE AND EXECUTE IT
************************************************************

Determine character is digit or not

Complete source code below will show you, how to determine character is digit or not in java.

*********************************************************************
COMPLETE SOURCE CODE FOR : DetermineCharacterIsDigit.java
*********************************************************************


public class DetermineCharacterIsDigit
{
public static void main(String[]args)
{
//Create a character using char with value(4)
char a='4';

//Determine created character is digit or not
//using method isDigit from class Character.
//isDigit is a static method, so we don't need to create object when
//we want to use it.
if(Character.isDigit(a))
{
//Print (It is a digit) if character is a digit
System.out.println("It is a digit");
}
else
{
//Print (It is not a digit) if character is not a digit
System.out.println("It is not a digit");
}
}
}


*********************************************************************
JUST COMPILE AND EXECUTE IT
*********************************************************************

RELAXING NATURE VIDEO