Hi all,
 
I'm havibng problems implementing carriage return and line feed in
Java. I used the code below and (char)10 is not being treated as such.
Does anyone has a sample code to show me how to achieve this in Java.
 
if (amount < 100000.00) {
                            specialHandlingIndicator = "0";
                        } else {
                            specialHandlingIndicator = "2";
                        }
item = item + "I," + itemSeq + "," + payingBankRoutingNo + "," +
benAccountNo + "," + tranCode + "," + serialNo + "," + itemAmount + ","
+ BOFDSortCode + "," + MICRFlag + "," + specialHandlingIndicator +
(char) 10;
                    }
                    String totalAmt =
StringUtil.replace(format.format(totalAmount), ".", "");
bundle = "B,30," + payingBankRoutingNo + ",086150000," + presentmentDate
+ "," + neftValue.getSessionID() + "," + presentmentDate + "," +
bundleID + "," + count + "," + totalAmt + (char) 10;
                    captureFileContent = bundle + item;
                    setContents(file, captureFileContent);
 
 
 
I'm sorry that my question is not related to openejb.
 
Thanks
 
 
Olumide Oteniya
Bond Bank Limited
Information Technology
3, Akin Adesola Street,
Victoria Island,
Lagos, Nigeria
Tel: 234 1 2627760-9 Ext. 3118,3106,3117
Email: [EMAIL PROTECTED]
Website: www.bondbankng.com <http://www.bondbankng.com/> 
 
 

Reply via email to