二进制转换成十进制设计

loveyouandme 35 0 JAVA 2019-02-25 12:02:25

一个简单的进制转换窗体程序:class CChange implements ActionListener{ public void actionPerformed(ActionEvent e){ String s = TextField1.getText().toString(); int x = 0; for(char c: s.toCharArray()) x = x * 2 + (c == '1' ? 1 : 0); TextField2.setText(String.value

用户评论
请输入评论内容
评分:
暂无评论