intCol
The intCol
method creates a column containing Java primitive integer values.
note
This method is commonly used with newTable
to create tables.
info
Integer columns do not support infinite and not-a-number (NaN) values.
Syntax
intCol(name, data...)
Parameters
Parameter | Type | Description |
---|---|---|
name | String | The name of the new column. |
data | int... | The column values. |
Returns
A ColumnHolder
.
Example
The following examples use newTable
to create a table with a single column of integers named Integers
.
result = newTable(
intCol("Integers", 1, 2, 3, 4, 5)
)
- result