Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Main {
    public static void main(String[] argv) throws Exception {
        List<Integer> list = new ArrayList<Integer>();

        for (int i = 1; i <= 12; i++)
            list.add(new Integer(i));

        Collections.shuffle(list);
        System.out.println(list);
    }
}