How to get the url parameters in the same order as they are sent? (Java) : I have a use case in which multiple parameters are to be sent from a web page to servlet.

The name given to the parameters are in alphanumeric form, for example: 01h, 02h... etc.

I had used different Java functions such as Collections.sort() etc., but when there are more than 10 parameters the values are misplaced.

For example, the 10th parameter will have the name as 10h, thus after retrieving the parameters using Collections.sort(), the order becomes 01h, 10h, 02h...

Instead, it should be 01h, 02h, 03h, .... , 10h

Please advise.