Here you can find the source of createReconFileHeader(int totalCount, BigDecimal totalAmount)
public static String createReconFileHeader(int totalCount, BigDecimal totalAmount)
//package com.java2s; //License from project: Apache License import java.math.BigDecimal; public class Main { public static final String SEPERATOR = "|"; public static final String LINECHANGE = "\n"; public static String createReconFileHeader(int totalCount, BigDecimal totalAmount) { StringBuilder sb = new StringBuilder(); sb.append("0").append(SEPERATOR).append(SEPERATOR) .append(totalCount).append(SEPERATOR).append(totalAmount) .append(SEPERATOR).append(totalCount).append(SEPERATOR) .append(totalAmount).append(LINECHANGE); ;//from w ww . j ava 2 s . co m return sb.toString(); } }