i wish to print sll the combinations of digits of a number
eg 123 gives 321 132 231 132....
class numbers
{
public static void main(String args[])
{
int num=123;
int x=num%10;
int y=num/10;
int z=100*x+y;
System.out.println(z);
}
}
this is all my brain is letting me to do.please help