check if String is an integer?
Is there a method to check if a String is an integer? For example, I want to take the derivative of a term.
I assign the first command line to a String called term. Then I want to check if the first index of the string is a number with an if statement. But I can't figure out a way to check "is the first index in this string a whole number?" I was thinking
String term = args;
but i dont know how to check if it starts with a whole number. can anyone help me please?