Write a program that prompts the user to enter a binary number in string and displays its

Question:

Write a program that prompts the user to enter a binary number in string and displays its decimal value. Use Stream’s reduce method to convert a binary number to decimal.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: