java - Organizing array of unknown number of constants in all possible ways -


this question has answer here:

what best way of looping through array, ending organizing in possible ways can organized in?

suppose have array:

{a, b, c, d} 

what organize so:

{b, a, c, d} {b, d, c, a} 

and forth, looping around creating 1 array analyze per looping.

thank you,


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -