Here you can find the source of toShort(String str)
Parameter | Description |
---|---|
str | String to convert |
public static short toShort(String str)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from w w w .j a v a2 s.c om*/ * Converts a string to a {@code short}. * * @param str String to convert * @return The {@code short} value represented by the argument in decimal. */ public static short toShort(String str) { return Short.parseShort(str); } }