分类：电脑/网络-程序设计-JAVA相关
问题：帮忙写段JAVA程序~~急用高手来看看~谢谢了Writeapro 
Write a program that will read in a string of characters from the keyboard and print out the characters in their ASCII(Binary)form.Parity1.  apply basic parity check bit to character2.  write a program that will read in a block of seven characters and calculate the BBC forWrite a program that will read in a string of characters from the keyboard and print out the characters in their ASCII(Binary)form.Parity1.  apply basic parity check bit to character2.  write a program that will read in a block of seven characters and calculate the BBC for each block.用J写一个程序能读一串字符从键盘上并且能显示出他们的ASCII形式。1．  用基本的[计]奇偶校验检查校验位从字符写一个程序用来读全部的7字符并且计算BBC从每批里面。
回答：主要算部分给你参考下，输入部分就不写了puic String parityCheck(String str) {    StringBuffer strbuf = new StringBuffer();  for(int i=0;i<str.length();i+=7){    String substr =  bstring(i, i+7);    int check = 0;    for(int j=0;j<substr.length();j++){       check ^=  arAt(j);         strbuf.append( BinaryString( arAt(j))+" ");    }     strbuf.append( BinaryString(check));      }     return  String(); }输入ewdsdss输出1100101 1110111 1100100 1110011 1100100 1110011 1110011 1100001