here is the code
int i1= -123;
int i2= 12345;
System.out.println(">%1$(7d< \n",i1);
System.out.println(">%0,7d <\n",i2);
System.out.println(">%+-7d< \n",i2);
System.out.println(">%2$b + %1$5d< \n",i1,false);
This produces output :
>(123)<
>012,345<
>+12345<
>false + -123<
In above code i can understand everything except the digit 7,what is the reason for putting 7 in first three line& 5 in the last line.can any one explain it? Thanking you in advance.