Java Add-in - Getting values from [Ljava.lang.String


I'm automating regression tests for a Java application and I'm trying to read the value of a specific cell from a custom table, so I'm using the Java Add-in. I have the following piece of code to read the value of the 1st column in the 1st row:

Dim oTable, oModel, oCell

Set oTable= JavaWindow("xxx").JavaObject("yyy").Object
Set oModel = oTable.getRowModel(1)
Set oCell = oModel.getCellValue(1)

Reporter.ReportEvent micDone, "Cell Class",  oCell.getClass.toString()
Reporter.ReportEvent micDone, "Cell Content",  oCell.toString()

This piece of code works fine if the content of the cell is a string.

Cell Class = java.lang.String

Cell Content = <whatever value is in the cell>.


However, I'm having some trouble with a cell that gives me the following output:

Cell Class = [Ljava.lang.String;

Cell Content = [Ljava.lang.String;@118eb95

Doing a search on Google, I found out this represents an array of strings but I don't seem to find a way to display the actual values inside the array. Is it at all possible in UFT?

Thank you