Click or drag to resize
Counter Methods

The Counter type exposes the following members.

Methods
  NameDescription
Public methodCompareTo
Compares this counter to the specified counter.
Public methodIncrement
Increments the counter by 1.
Public methodStatic memberMainTest
Reads two command-line integers N and T; creates N counters; increments T counters at random; and prints results.
Public methodToString
Returns a string representation of this counter.
(Overrides ObjectToString.)
Top
See Also