Here you can find the source of transformContinuouslyVariablesByThreshold(List> data, int index, int threshold)
private static void transformContinuouslyVariablesByThreshold(List<List<String>> data, int index, int threshold)
//package com.java2s; //License from project: Open Source License import java.util.List; public class Main { private static void transformContinuouslyVariablesByThreshold(List<List<String>> data, int index, int threshold) { for (int i = 1; i < data.size(); i++) { List<String> rowData = data.get(i); if (Integer.parseInt(rowData.get(index)) <= threshold) { rowData.set(index, "<=" + threshold); } else { rowData.set(index, ">" + threshold); }/*from w w w . ja v a 2s. c om*/ } } }