List of usage examples for java.util Arrays toString
public static String toString(Object[] a)
From source file:cz.incad.kramerius.virtualcollections.VirtualCollectionsManager.java
public static void main(String[] args) throws Exception { logger.log(Level.INFO, "process args: {0}", Arrays.toString(args)); FedoraAccess fa = new FedoraAccessImpl(KConfiguration.getInstance(), null); String action = args[0];/*from ww w .j a va 2s. c om*/ String pid = args[1]; String collection = args[2]; if (action.equals("remove")) { ProcessStarter.updateName("Remove " + pid + " from collection " + collection); CollectionUtils.removeFromCollection(pid, collection, fa); CollectionUtils.startIndexer(pid, "fromKrameriusModel", "Reindex doc " + pid); } else if (action.equals("add")) { ProcessStarter.updateName("Add " + pid + " to collection " + collection); CollectionUtils.addToCollection(pid, collection, fa); CollectionUtils.startIndexer(pid, "fromKrameriusModel", "Reindex doc " + pid); } else if (action.equals("removecollection")) { ProcessStarter.updateName("Remove collection " + collection); CollectionUtils.delete(collection, fa); } else { logger.log(Level.INFO, "Unsupported action: {0}", action); return; } logger.log(Level.INFO, "Finished"); }
From source file:edu.umd.cloud9.collection.trec.TrecForwardIndexBuilder.java
/** * Dispatches command-line arguments to the tool via the <code>ToolRunner</code>. *///from www . j a va 2 s.c om public static void main(String[] args) throws Exception { LOG.info("Running " + TrecForwardIndexBuilder.class.getCanonicalName() + " with args " + Arrays.toString(args)); ToolRunner.run(new Configuration(), new TrecForwardIndexBuilder(), args); }
From source file:edu.umd.cloud9.collection.clue.CountClueWarcRecords.java
/** * Dispatches command-line arguments to the tool via the <code>ToolRunner</code>. *//* w ww . j a v a 2s . c o m*/ public static void main(String[] args) throws Exception { LOG.info( "Running " + CountClueWarcRecords.class.getCanonicalName() + " with args " + Arrays.toString(args)); ToolRunner.run(new CountClueWarcRecords(), args); }
From source file:Main.java
public static <T> String arrayToString(T[] array) { return Arrays.toString(array); }
From source file:Main.java
public static String getNFCUid(byte[] paramArrayOfByte) { return Arrays.toString(paramArrayOfByte); }
From source file:Main.java
public static String toString(Collection<?> coll) { return Arrays.toString(coll.toArray()); }
From source file:Main.java
public static String collectionToString(Collection<? extends Object> array) { String string = "'" + Arrays.toString(array.toArray()).replaceAll("\\[|\\]", "").replaceAll(", ", "','") + "'"; return string; }
From source file:Main.java
public static void main() { int red = 23; int green = 66; int blue = 99; float[] hsb = Color.RGBtoHSB(red, green, blue, null); System.out.println(Arrays.toString(hsb)); }
From source file:io.bfscan.clueweb09.BuildPForDocVectors.java
/** * Dispatches command-line arguments to the tool via the <code>ToolRunner</code>. */// w ww . ja va 2s . c om public static void main(String[] args) throws Exception { LOG.info("Running " + BuildPForDocVectors.class.getCanonicalName() + " with args " + Arrays.toString(args)); ToolRunner.run(new BuildPForDocVectors(), args); }
From source file:Main.java
public static void testSort() { int[] ary = new int[10]; for (int i = 0; i < ary.length; i++) { ary[i] = ary.length - i;// w w w . j a v a 2s . c om } System.out.println(Arrays.toString(ary)); sort(ary); System.out.println(Arrays.toString(ary)); }