How to judge whether the mathematical expression entered in the text area is correct in java?
Use matching in string classes. There is a matching method in the string.
Write the common expression types you have seen as patterns, and then match the input text. If you match any one, it means it is correct. Look at java Api more. String is the most basic type.