public static void q4(String[] args) throws Exception{
        //Question 9.4: Write a method to return all subsets of a set
        SOP("Running q4");
        if(args.length < 2){
            SOP("ERROR: Must specify at least one element for the set");
            return;
        }

        int[] mArray = new int[args.length - 1];
        for(int i = 0; i<args.length-1; i++){
            mArray[i] = Integer.parseInt(args[i+1]);
        }

        ArrayList<ArrayList<Integer>> mPowerSet = computePowerSet(mArray);
        if(mPowerSet == null) SOP("ERROR: null powerset");
        else{
            SOP("Powerset of provided set:");
            for(ArrayList<Integer> mList : mPowerSet){
                SOP2("{");
                for(Integer i : mList){
                    SOP2(i+" ");
                }
                SOP2("} ");
            }
            SOP("");
        }
    }