I compiled the following code and the output is as follows?
Can someone explain why is it so?
__________________________________________________________
public class BinDec{
public static void main(
String argv[]){
System.out.println(Integer.parseInt("011",3));
System.out.println(Integer.toString(64,2));
}
}
__________________________________________________________
If you compile and run this program the output will be
4
1000000
CAN SOMEONE EXPLAIN WHY?? if anybody can tell me how do we use parseInt() it will be very helpful...
thanks in advance...