Scratch for Java

Stage::countPensOf()

Returns the number of pens of the specified class.

Syntax

Java

.countPensOf(c)

Parameters

Name Data Type Description
c Class<T> the class of the pens to count

Return

long

countPensOf()