Monthly Archives: February 2009

Escape Characters in Java

Java provides escape sequences for several non-graphical characters. All characters can be specified as a hexidecimal Unicode character (uxxxx) with some as an octal character (ddd where the first d is limited to 0-3, and the others 0-7 – same as u0000-u00ff). n New line t Tab b Backspace r Carriage return f Formfeed \ […]

read more

Writing to Excel using java code

import java.io.FileOutputStream; import org.apache.poi.hssf.usermodel.HSSFCell; import org.apache.poi.hssf.usermodel.HSSFRow; import org.apache.poi.hssf.usermodel.HSSFSheet; import org.apache.poi.hssf.usermodel.HSSFWorkbook; /** * This is a sample to create an Excel Sheet using Jakarta POI API * * @author Nitin Aggarwal * @version 1.0 */ public class CreateXL { /** A place for the output Excel file to go */ public static String outputFile = “C:/Work/JPOI/excel_in_java.xls”; […]

read more

Reading contents of Excel using java code

There are two good choices for reading & writing Microsoft Excel Spreadsheet files from Java, in a platform independent way, – jexcelapi and Jakarta POI (HSSF). Both of them provide nice interface to access Excel data structure and even generate new spreadsheet. Comparison of JExcelAPI with Jakarta-POI (HSSF) 1. JExcelAPI is clearly not suitable for […]

read more

Maven Archtypes List

Each archetype page should enforce the following pattern : * Archetype name* Command line to call the archetype* If the archetype can be used in an existing projects directory* A tree view of the resulting files* Some additional information like the additional properties used by the plugin To use an archetype: mvn archetype:generate Generate gives […]

read more

Recession Action Plan-Preparing you for the recession

Yes, You can get prepared for the recession * As the economy tightens its belt you might have to make some changes – and it makes sense to start planning now. * Make sure a recession doesn’t hit you hard by clearing your debts, cutting your expenses and getting as much free stuff as you […]

read more