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

How long does it take a person to skate the length of a hockey rink (200 feet) at a constant speed of 8 feet per second?
3402 divided by 45 explain how to do long division written out to solve it
In what occupations did most Chinese immigrants work from the 1860s to 1890s? What was Chinese community life like in the cities, especially San Francisco?
What is the difference between solid HCl and liquid HCl
write five names for 132
what is equivalent to 1/81
Order decimals from least to greatest .. 1.09, 1.901,1.9,1.19
In seans fish tank, there are 6 times as many goldfish as guppies. There are a total of 21 fish in the tank. How many more goldfish are there than guppies?
i am a square number i am less than 80 i am a multiple of 9.                                                                           what am i
1.What is the base metric unit for measuring mass? 2.What is the base metric unit for measuring volume? 3.Place these metric units in order from the smallest to