Home > Contents > Index >
Expanded TOC | Accordion TOC | Annotated TOC | Index
ICS.GetCounter
Gets the value of a counter.
Syntax
public int GetCounter(String counter) throws ExceptionParameters
counter- Name of counter to get.
Returns
Value of counter.
Throws
Exception- If there is no counter with this name, the
GetCounter()method returnsnull. This will causeInteger.parseInt()to throw aNumberFormatException.
Example
The following example gets the value of a counter:
try { int myCounter = ics.GetCounter("testCounter"); } catch(Exception e) { //handle exception }See Also
Home > Contents > Index > ![]()
Oracle JAVA Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.