String xxx = "Foo"; // this comes from an argument
String a = xxx.equals("Foo")? "Bar" : "Foo" ;
String b = a.equals("Foo")? "Bar" : "Foo" ;
සරලව කිව්වොත් එන value එක අනුව a, b සෙට් වෙන්න ඕනේ
Foo ආවොත් a=bar b=foo
Bar ආවොත් a=Foo b=bar
------ Post added on 1655797570