christinafish1838 christinafish1838
  • 09-08-2019
  • Computers and Technology
contestada

Assume that x is a char variable that has been declared and already given a value. Write an expression whose value is true if and only if x is alphanumeric, that is either a letter or a decimal digit.

Respuesta :

yungsherman
yungsherman yungsherman
  • 09-08-2019
In Java, the character class has both an isDigit method and an isLetter method.

if (Character.isDigit(a) || Character.isLetter(a)){
return true;
} else {return fase;}
Answer Link

Otras preguntas

Wanax was another name for a Mycenaean _____. scholar king priest warrior
What is the mountain range know as the "backbone of England"
In the figure , a || b and m 1=34 degrees What's m 5 _____ degrees
a number, half of that number, and one-third of that number are added. the result is 22. what is the number?
Which word in the sentence is the action verb? Coal provides energy in many countries. A. countries B. many C. provides D. energy
What is the oldest political party in the western world?
when wind drops its load of sand,it can form a hill called
If x can be any number, how many solutions are there for the equation? y = 4x – 1 A. There is no solution. B. There is only one solution. C. There are two s
How do i factor polynomials 32xy+40bx-12ay-15ab
Which of the following state capitals borders the east coast? Atlanta, Georgia Columbia, South Carolina Lexington, Kentucky Cheyenne, Wyoming