public class IntegerparseIntExample {
public static void main(String[] args) {
int tenA = Integer.parseInt("1111", 2);
System.out.println(tenA);
int a=2;
int tenB = Integer.parseInt("1111", ++a);
System.out.println(tenB);
}
}
public static void main(String[] args) {
int tenA = Integer.parseInt("1111", 2);
System.out.println(tenA);
int a=2;
int tenB = Integer.parseInt("1111", ++a);
System.out.println(tenB);
}
}
No comments:
Post a Comment