
So, as you can see from the image, I combined a, c and b. And I get the expected result. But in the second println, when I concatenated a, e and b, I got concatenation at the end, and not where I expected. I want to know the reason for this behavior and the solution to this behavior. Thank you in advance.
import java.util.*; public class prob { public static void main(String... args) { String a="Ψ§ΩΩ",b="1/2",c="Ψ¨",e="B"; System.out.println(a+" : "+c+" : "+b); System.out.println(a+" : "+e+" : "+b); } }
EDIT (to explain why my question is not a duplicate): My question is converting L2R languages ββto R2L.
java string unicode concatenation
Zia Ul Rehman Mughal
source share