What’s the most efficient way to do this in java:
I need a method that would clean specified parameters from a url and another method that would keep the specified parameters in the url and remove all the other parameters. So the signatures would be something like this:
public static String getUrlWithoutTheFollowingParameters (String url, List<String> queryParams) ()
public static String getUrlWithOnlyTheFollowingParameters( String url, List<String> queryParams)()
I want to do this w/o using any third-party library.