top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Does java support operator overloading, if not how strings can be concatenated using + operator

+1 vote
242 views
Does java support operator overloading, if not how strings can be concatenated using + operator
posted Aug 5, 2016 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+2 votes

Given 2 strings, a and b, return a string of the form shorterString+longerString+shorterString, with the shorter string on the outside and the longer string on the inside. The strings will not be the same length, but they may be empty (length 0). If input is "hi" and "hello", then output will be "hihellohi".

...