Java List Shuffle shuffle(List list)

Here you can find the source of shuffle(List list)

Description

shuffle

License

Apache License

Declaration

public static void shuffle(List<?> list) 

Method Source Code


//package com.java2s;
/*/*from   ww  w  .  j ava2 s.  c  o m*/
 * Commons-Utils
 * Copyright (c) 2017.
 *
 * Licensed under the Apache License, Version 2.0 (the "License")
 */

import java.util.*;

public class Main {

    public static void shuffle(List<?> list) {
        Collections.shuffle(list);
    }
}

Related

  1. shuffle(List list, int count)
  2. shuffle(List list)
  3. ShuffleList(final Collection list)