java language
check if string has underscores with split from stringclass. print error statement if underscore doesn’t exist.
ex: Hellokitty is a _cat_
ex: bat is cool.
Underscore missing
ex: _ cake _ is a food
ex: water is liquid_
(undersocre must be on both sides)
Underscore missing
Expert Answer
An answer will be send to you shortly. . . . .