Android examples for java.lang:Array Element
prints the passed array
//package com.java2s; import android.util.Log; public class Main { /**/* www . j a v a 2 s. c o m*/ * prints the passed array * @param _tag the tag for the print * @param arr the array to print */ public static void printArray(String _tag, double[] arr) { StringBuffer sb = new StringBuffer(); for (int i = 0; i < arr.length; i++) { sb.append(arr[i]); sb.append("\n"); } Log.e(_tag, sb.toString()); Log.e(_tag, "--------------------"); } }