shortCol
The shortCol
method creates a column containing Java primitive short values.
note
This method is commonly used with newTable
to create tables.
Syntax
shortCol(name, data...)
Parameters
Parameter | Type | Description |
---|---|---|
name | String | The name of the new column. |
data | short... | The column values. |
Returns
A ColumnHolder
.
Example
The following examples use newTable
to create a table with a single column of shorts named Shorts
.
result = newTable(
shortCol("Shorts", (short)86, (short)78, (short)41, (short)54, (short)20)
)
- result