# parseShort static method

Short parseShort(

1. String str, [
2. int radix = 10

])

Parses a string to a Short.

`str` the string to parse `radix` the radix to use for parsing (default is 10)

A wrapper class for int representing a 16-bit signed integer.

This class wraps a short integer value and provides Java-like functionality similar to Java's Short class.

Example usage:

    Short s1 = Short(32767);
    Short s2 = Short.parseShort("1000");
    Short s3 = Short.valueOf(-32768);

    print(s1.toString()); // "32767"
    print(s1.toUnsigned()); // 32767

## Implementation

    static Short parseShort(String str, [int radix = 10]) {
      int parsed = int.parse(str, radix: radix);
      return Short(parsed);
    }