Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

concatenating two int in java

int a = Integer.parseInt(Integer.toString(9) + Integer.toString(10));
Comment

Java concatenate two int

public static Integer concatenateInt(int a, int b) {
        if(b < 0){
            b *= -1;
        }
        int proxyB = b/10;
        a *= 10;
        for (; proxyB > 0; proxyB /= 10) {
            a *= 10;
        }

        if(a < 0){
            a -= b;
        } else {
            a += b;
        }
        return a;
    }
Comment

PREVIOUS NEXT
Code Example
Java :: java how to find length of int 
Java :: java parse boolean to string 
Java :: java random max and min 
Java :: spring annotations xml configuration 
Java :: java close jframe 
Java :: Could not initialize class org.codehaus.groovy.vmplugin.VMPluginFactory 
Java :: how to use edittext get 
Java :: how to delete last char in string java 
Java :: set fontcolor of jframe 
Java :: javafx button with icon 
Java :: how to vibrate android java 
Java :: java find substring between two strings 
Java :: android ancestral navigation 
Java :: android settextcolor programmatically 
Java :: javax.xml.bind does not exist 
Java :: change editext hint color android 
Java :: duck number in java 
Java :: bundletool aab to apk 
Java :: how to detenct free the end achievement spigot 
Java :: how to download java on mint 
Java :: java int to octal 
Java :: java jshell run string as code 
Java :: java write string 
Java :: A failure occurred while executing com.android.build.gradle.tasks.ProcessLibraryManifest$ProcessLibWorkAction 
Java :: Java program to find the sum of all even numbers from 1 to 10 
Java :: How to efficiently invert a binary tree, in Java? 
Java :: change material fab color android 
Java :: java initialize float to zero 
Java :: java button actionlistener 
Java :: java string array add element 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =