Thanks for your interest in Aspose.Cells for Java.
Please refer to this document: Importing Data to Worksheets
This link is broken. Is this still possible now?
Sorry for the broken link.
Please try using the below link for example code and details on how to import ResultSet into Excel document for your reference:
Hope, this helps a bit.