If i\'m giving values like a=1234, i want to print last two digits 34 only.. can anyone give me solution for this...
int a=1234; System.out.print(a);
User modulo 100
System.out.print(String.format("%02d", (abs(a)%100)));