A Java char variable can store one Unicode value. You can see this in the example below:
UBUNTU > cat prog19.java
public class prog19
{
public static void main (String args[])
{
char A = 'A';
System.out.println ("A = " + A);
}
}
UBUNTU > javac prog19.java
UBUNTU > java prog19
A = A
UBUNTU >
If you have a Java book on Amazon, which you would like to advertise here for free, please write to me at international_dba@yahoo.co.uk.
UBUNTU > cat prog19.java
public class prog19
{
public static void main (String args[])
{
char A = 'A';
System.out.println ("A = " + A);
}
}
UBUNTU > javac prog19.java
UBUNTU > java prog19
A = A
UBUNTU >
If you have a Java book on Amazon, which you would like to advertise here for free, please write to me at international_dba@yahoo.co.uk.