Skip to main content
Version: Java (Groovy)

stringCol

The stringCol method creates a column containing string object values.

note

This method is commonly used with newTable to create tables.

Syntax

stringCol(name, data...)

Parameters

ParameterTypeDescription
nameString

The name of the new column.

dataString...

The column values.

Returns

A ColumnHolder.

Example

The following examples use newTable to create a table with a single column of strings named Strings.

result = newTable(
stringCol("Strings", "Deephaven", "3.14", "Community")
)