Here you can find the source of dumpGroups(String title, int[][] allGroups)
Parameter | Description |
---|---|
title | a string title for the dump |
allGroups | a two-dimensional array with all groups |
private static void dumpGroups(String title, int[][] allGroups)
//package com.java2s; public class Main { /**/*from w ww.java2 s.c om*/ * Dumps the given groups to the console. * * @param title a string title for the dump * @param allGroups a two-dimensional array with all groups */ private static void dumpGroups(String title, int[][] allGroups) { System.out.print(title + " {"); for (int group = 0; group < allGroups.length; group++) { int[] groupIndices = allGroups[group]; System.out.print(" {"); for (int i = 0; i < groupIndices.length; i++) { System.out.print(groupIndices[i]); if (i < groupIndices.length - 1) { System.out.print(", "); } } System.out.print("} "); if (group < allGroups.length - 1) { System.out.print(", "); } } System.out.println("}"); } }