Java Binary to Decimal bin2dec(String str)

Here you can find the source of bin2dec(String str)

Description

bindec

License

Apache License

Declaration

public static int bin2dec(String str) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static int bin2dec(String str) {
        int num = Integer.parseInt(str, 2);
        return num;
    }/*from  ww w. java 2s. co m*/
}

Related

  1. bin2dec(String bin)
  2. toDecimal(String binary)