ChildOfCode


Code, Maker, Robotic, Open Source. Knowledge Bases


  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(…

    on Java, JavaScript, Integer, check, Titanium

  2. Titanium Android Module

    a Simple Prototype for Create Titanium Android Native Module. In this Prototype I will create a Titanium Android Native Module calling "testmodule" And Create Four simple Maths calculation Java /** * This file was auto-generated by the Titanium Module SDK helper for Android * Appcelerator Titanium Mobile * Copyright (c) 2009-2010 by Appcelerator, Inc.…

    on Java, Android, Module, Titanium

  3. Mobile first

    This is the first post in my mobile. ^^ function toggle() { //makes the value of 'on' true if it was false before, or false if it was true before. //If you pronounce = as becomes, and ! as 'not', reading the line makes much more sense. on = !on; //Set the digital value of…

    on mobile