***********************************************************************
COMPLETE SOURCE CODE FOR : GetNumbersOfCharacterInAString.java
***********************************************************************
public class GetNumbersOfCharacterInAString
{
public static void main(String[]args)
{
//Create a String
//You can change to other String that you want
String a="Hello everybody";
//Get numbers of character in created String and store it in int variable
int numbersOfCharacter=a.length();
//Print result
System.out.println("Numbers of character is : "+numbersOfCharacter);
}
}
***********************************************************************
JUST COMPILE AND EXECUTE IT
***********************************************************************