import java.io.IOException;class stdio 
{
public static void main(String[] args) throws IOException
{
                double  da,db;
                byte [] a = new byte[100];                

                System.out.print("please input number a:");
                System.in.read(a);                
                da = Double.parseDouble(new String(a));
                
                System.out.print("please input number b:");
                System.in.read(a);                
                db = Double.parseDouble(new String(a));
                
                System.out.println("result is :"+(da+db));
                
}
}给分吧,谢谢。

解决方案 »

  1.   

    import java.io.IOException;class stdio 
    {
    public static void main(String[] args) throws IOException
    {
                    double  da,db;
                    byte [] a = new byte[100];                

                    System.out.print("please input number a:");
                    System.in.read(a);                
                    da = Double.parseDouble(new String(a));
                    
                    System.out.print("please input number b:");
                    System.in.read(a);                
                    db = Double.parseDouble(new String(a));
                    
                    System.out.println("result is :"+(da+db));
                    
    }
    }给分吧,谢谢。
      

  2.   

    哎我还以为什么问题那
    方法太多了
    有在server中实现,在jsp中实现。还有就是在后台实现了
    安全性能是:中,差,优。