请救帮助....java编写一个程序,从两个文本框接收两个数,然后计算这两个数的乘积

来源:百度知道 编辑:UC知道 时间:2024/05/22 23:45:08

C/S ?
B/S ?

public class Test {

public int sum (int x , int y ){
return x*y;
}

public static void main (String [] args) {

Test t = new Test();
int c = t.sum(1,45);
System.out.println(c);
}
}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script>
function a()
{
document.getElementById('t3').value = document.getElementById('t1').value * document.getElementById('t2').value;
}
</script>
<meta http-eq