I want to check if the char is null or not? but why this code is not working? letterChar == null
also is not working. I googled for many problems but didn't see any solutions, mostly the solutions are about String
.
String letter = enterletter.getText().toString();
char letterChar = letter.charAt(0);
if(letterChar == ' ' || letterChar == NULL) // this is where the code won't works
{
Toast.makeText(getApplicationContext(), "Please enter a letter!", Toast.LENGTH_LONG).show();
}