public static int getInteger(String value, int def) { try { return Integer.parseInt(value); } catch (Exception e) { return def; } }
no subject
Date: 2013-03-21 09:43 am (UTC)