Guys if the int c=10001; which is a binary value.If i want to process it like multiplying it by 10 how to do that?
You can specify it as int c = 0x11 (consider 10001 is 0001 0001, which is 11 in hex)
public static void main(String[] args) throws Exception {
int c = 0x11; // 10001
int d = 10; // ten decimal
int d = 0x2; // ten binary 0010 - see table below
System.out.println(c);
System.out.println(c*d);
System.out.println(c*e);
}
binary-decimal conversion