Hello. I was wondering if there is a way to combine ints. No like adding them, but 7 and 8 = 78. Thanks. By the way, I'm not sure what this is supposed to be...
String combinedInts = ""+(7)+(8);
int combinedInts = Integer.parseInt(""+(7)+(8));//current = the current number
//newNum = the new number which is "added" at the end of the current number
int multiplier = 1;
while(true)
{
if (Math.pow(10,multiplier) > newNum) break;
else multiplier++;
}
current = current*Math.pow(10,multiplier)+newNum;