Is there an easy way without having to use java library to concat two int? Maybe math?
say I have 9 and 10 , then I want it to be 910, or 224 and 225 then I want it to be 224225.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Anything in
java.lang.*should be fair game…Addendum:
I do not like the following the syntax because the operator overloading doesn’t declare intent as clearly as the above. Mainly because if the empty string is mistakenly taken out, the result is different.