Hello.
I use BlueJ 3.0.1
I am writing a program to dictionarize words(arrange words in dictionary order).
But the 'char' type isn't working properly.
Please help with it and program.
* NOTE for Bytes.com : THIS IS NOT A HOMEWORK QUESTION.
I use BlueJ 3.0.1
I am writing a program to dictionarize words(arrange words in dictionary order).
But the 'char' type isn't working properly.
Code:
char ch1 = 'qwerty' ;//shows error
char ch2 = 'qwedrt';
if(ch1>ch2)
{
System.out.println(ch2);
System.out.println(ch1);
}
else
{
System.out.println(ch1);
System.out.println(ch2);
* NOTE for Bytes.com : THIS IS NOT A HOMEWORK QUESTION.
Comment