Here you can find the source of tryParse(String pValue)
Parameter | Description |
---|---|
pValue | a parameter |
public static boolean tryParse(String pValue)
//package com.java2s; //License from project: Open Source License public class Main { /**/*w w w . ja va2 s . c om*/ * Seriously.. no tryparse and no byreference calls, what is this, dos-batch? * @param pValue * @return */ public static boolean tryParse(String pValue) { try { Integer.parseInt(pValue); return true; } catch (NumberFormatException nfe) { return false; } } }