Here you can find the source of arrayOffloatCoordsAsCSStrings(float[] ar)
public static String arrayOffloatCoordsAsCSStrings(float[] ar)
//package com.java2s; public class Main { public static String arrayOffloatCoordsAsCSStrings(float[] ar) { String res = ""; if (ar.length % 2 == 0) { for (int i = 0; i < ar.length - 2;) { res += Float.toString(ar[i]) + "," + Float.toString(ar[i + 1]) + ";"; i += 2;/*from w w w .j ava2 s .c o m*/ } res += Float.toString(ar[ar.length - 2]) + "," + Float.toString(ar[ar.length - 1]); } return res; } }