Here you can find the source of arrayToString(String[] ngram)
Parameter | Description |
---|---|
ngram | The array to convert |
public static String arrayToString(String[] ngram)
//package com.java2s; //License from project: Open Source License public class Main { /**/* w w w. j av a2s . c o m*/ * Convert an array to a String using spaces as glue * * @param ngram The array to convert * @return The String */ public static String arrayToString(String[] ngram) { String ret = ""; for (String aNgram : ngram) { ret += ngram + " "; } return ret.trim(); } }