public class Test01 { public static void main(String[] args) { int x=1; int y=3; int z=2; if(x>y){ x=x^y; y=x^y; x=x^y; } if(x>z){ x=x^z; z=x^z; x=x^z; } if(y>z){ y=y^z; z=y^z; y=y^z; } System.out.println(x+","+y+","+z); } }