Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Conversion from void to String

807600Jul 12 2007 — edited Jul 12 2007
Hi there!

I am a student currently doing my FYP(Final Year Project). Is there any code that i can use to convert void to String? I am using apache POI HSSF(Horrible SpreadSheet Format) to retrieve some data from typical MicroSoft Excel so that i can convert it to pure java and use JDBC to store the value into the server's database.

Now, the problem occurs if the user happens to leave certain mandatory fields blank and uploads the Excel(.xls) file into the server without double checking his/her work. This causes the program to fail.

I had tried to use other methods from the API such as setCellValue(); but always got the
"Type mismatch: cannot convert from void to String"
error.

Greatly appreaciate anyone that can give me good suggestions as to solve this problem.If not, thanks for reading this.

-OrangeFlash-
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 9 2007
Added on Jul 12 2007
4 comments
4,057 views