Binary To Decimal

i not able to use your editorial as i have solved this one in my eclipse bbut your editorial give such error
Exception in thread “main” java.util.NoSuchElementException
at java.util.Scanner.throwFor(Scanner.java:862)
at java.util.Scanner.next(Scanner.java:1485)
at java.util.Scanner.nextInt(Scanner.java:2117)
at java.util.Scanner.nextInt(Scanner.java:2076)
at Main.main(Main.java:5)

There’s a problem with your input format. Probably you are not providing input in the correct format. I could help you rectify the mistake if you could please share your code.