public class EvaluatorUtilities extends Object
Constructor and Description |
---|
EvaluatorUtilities() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isNumber(String x)
Returns true if the given string can be interpreted
as a number, false otherwise.
|
static char |
nextOperator(String exp)
Returns a character representing the next operator in
the given string.
|
static int |
nextOperatorIndex(String exp)
Returns the index in the given string of the next operator to be
evaluated.
|
public static boolean isNumber(String x)
public static int nextOperatorIndex(String exp)
public static char nextOperator(String exp)
nextOperatorIndex
for more description of 'next'
and 'operator'.