SHARE
TWEET

Untitled

a guest Jun 27th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. val = val.replaceAll("\s+", "");
  2. val = val.replaceAll("\s", "");
  3. val = val.replaceAll(" ", "");
  4.      
  5. if(value == 0) {
  6.     String val = request.getParameter("value");
  7.     if(val != null) {
  8.         val = val.replaceAll("\s", "").replaceAll(" ", "");
  9.         try {
  10.             value = Integer.parseInt(val);
  11.         } catch (NumberFormatException e) {
  12.             // Returning JSON with error;
  13.         }
  14.     }
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top