How do I check whether any URL contains one or more parameters or not?
For example, if the URL is
.../PaymentGatewayManager?mode=5015
then we should be able to know that URL contains one parameter. Or if the URL is
.../PaymentGatewayManager
then we should be able to know that the URL does not contain any parameter. Or if the URL is
.../PaymentGatewayManager?mode=5015&test=456123&abc=78
then we should be able to know that the URL contains three parameters, and we should also be able to know the parameter name and values of that using any regular expression in Java.