JavaArray.toString() (Method)

A string primitive representation of the JavaArray contents.

Availability:

JavaScript - 1.1
Netscape - 3.0
Property/method value type:String primitive
JavaScript syntax:NmyJavaArray.toString()

In version 1.4 of JavaScript, this method is overridden by the toString() method belonging to the java.lang.Object super-class.

Prior to that, it yielded a string like this:

[object JavaArray]

If you expect to use this for any useful purpose in scripting, you will need to override it with a custom handler that converts the object to a string that delivers the instance value rather than the type of its prototype object.