chaîne de bits à entier java

int foo = Integer.parseInt("1001", 2);
Depressed Dingo