// // .... // Read a binary and then out it // import java.util.Scanner; public class BinaryEx { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("Input the binary: "); String binStr = input.next(); int len = binStr.length(); for(int i=0; i