How To Read / Write Excel Spreadsheet From JavaMay 24th, 2007 Overview
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.
SYS-CON - "unethical money grabbers?"July 22nd, 2005 Paul Mutton of jibbler.org had a bad experience with Sys-Con. Not only they didn't remunerate him (as per agreement) they also didn't provide him with free copies as promised.
Python: A recipe for cryptic code?April 13th, 2005 I have heard that Python is a great programming language which is so much superior to everything around etc. The following code in python is touted as the world's smallest p2p client & server.
Java Software: 1-Line Sort & Uniq UtilityOctober 18th, 2005 I had to sort and uniq (create a unique set of strings) a large list with lots of duplicate. My options were to write it in Java or download cygwin and run: cat file | sort | uniq > result
Cygwin download never works for me.
Solving - "A pseudo attribute name is expected" Error in JAXPJuly 6th, 2006 I was writing a xml data reader in Java using JDK's inbuilt XML processing libraries (JAXP) when I persistently hit across this annoying exception with error message: A pseudo attribute name is expected. The error is displayed on the first line itself.
Tips on Java Software Certification OptionsNovember 28th, 2005 I have received several questions regarding java certifications. This is a concise guide to java software certification options for java developers, software architects, non-developers like project managers, product managers etc.
Writing Obfuscated Code Using Java Generics Part 1November 14th, 2005 Let's begin with a simple example for this installment. import java.util.Collection;
public class TestType {
public static <Collection> Collection myMethod(Collection a) {
return a;
}
public static void main(String ...
Top 10 Java SE 6 FeaturesJune 18th, 2006 List of top 10 features in Java SE 6. Web Services
You get first-class support for writing XML web service client applications (death of Apache Axis?).
JBoss Seam, Stripes and Hibernate: An Irreverent Look at Java Software Frameworks & RoROctober 25th, 2005 Where is Hello World in JBoss Seam?
Why Ruby And ROR Really SucksMarch 25th, 2006 Ruby and ROR fanatics have adopted a highly annoying habit of luring hapless readers with highly provocative titles like "Ruby is not ready for production. Definitive proof".
The Power And Versatility of JSON (Over XML)July 16th, 2007 It is never a good idea to mix syntax with semantics. When comparing JSON with XML this is what first came to my mind.
To Hibernate or not? - A commentary on ORM's and few recommendationsFebruary 15th, 2004 I came across the post from Jesus Rodriguez where he tries to find good reasons to convince management to use Hibernate. [[I tried posting but it required me to create an account, also I felt that the topic might be of general interest.
How is Java World Going These Days - A SummaryJuly 14th, 2005 Today I had an interesting conversation with my ex-Boss and good friend. He asked me to summarize the current state of Java world these days as he was busy with databases and scientific computing.
5 Tips for Bulk Data Processing ProgrammingMay 30th, 2007 We are currently processing huge amount of sensitive corporate data for a Fortune 500 company as the first phase of a project. You have to be very careful in data processing, much more than any standard programming effort.
Free Eclipse Costs Over 100K per Seat Claims Microsoft ManagerOctober 11th, 2005 In the VSLive Conference in Orlando, BJ Holtgrewe, Senior Production Manager for Visual Studio made some outrageous claims like:
Holtgrewe's chat was also peppered with competitive messages, noting that U.S. DevTracker found that 53 percent of software development is being done on .NET these days, leaving Java scrambling for the remainder of the pie.
January 7th, 2008 at 8:08 am
Hi
I am trying to implement the code you sent. Can you please show me how I would call Coolections.sort method using the comparator you wrote above. I have a value object with fields and getter and setter methods called ProductVO. I just want to sort an ArrayList of ProductVO based on one of its fields called lastname. However I dont want to write a comparator specific to the ProductVO but use your comparator to sort any type of array list of VOs.
August 27th, 2009 at 6:41 am
Can i get some example for the same ?
August 27th, 2009 at 11:42 am
Hi,
I am getting the below warings when i use the above peace of code.
javac -Xlint Comp.java
Comp.java:21: warning: [unchecked] unchecked call to compareTo(T) as a member of the raw type java.
lang.Comparable
return (corder.booleanValue())?cFirst.compareTo(cSecond):cSecond.compareTo(cFirst);
^
Comp.java:21: warning: [unchecked] unchecked call to compareTo(T) as a member of the raw type java.
lang.Comparable
return (corder.booleanValue())?cFirst.compareTo(cSecond):cSecond.compareTo(cFirst);
Can you please help us ?