ChildOfCode


Code, Maker, Robotic, Open Source. Knowledge Bases


Tag: JavaScript


  1. Java Check Input integer

    Java @Kroll.method public String InputCheck(String value1 , String value2) { String inputType= ""; String [] numbers = {value1, value2}; for(String x : numbers ) { try{ int checkInput = Integer.parseInt(x); inputType = "Number"; }catch (NumberFormatException ex) { //handle exception here inputType = "No Number!"; break; } } if(inputType == "Number"){ int Intvalue1 = Integer.parseInt(value1); int Intvalue2 = Integer.parseInt(…

    Java, JavaScript, Integer, check, Titanium