[英]The method pro(int, int) in the type prosedure_jsp is not applicable for the arguments ()
this is my code 这是我的代码
<%@ page import="static java.lang.System.out"%>
<%!
void pro(int a, int b)
{
a = 1;
b = 3;
int luas;
luas = a*b;
out.print(a);
}
%>
<%
pro();
%>
and massage error is: 和按摩错误是:
An error occurred at line: 16 in the jsp file: /prosedure.jsp
The method pro(int, int) in the type prosedure_jsp is not applicable for the arguments ()
Please help me with this issue. 请帮我解决这个问题。
You are trying to call a method that receives two input parameters ( int a
and int b
) but you are not passing them anything. 您正在尝试调用一个接收两个输入参数(
int a
和int b
)的方法,但没有给它们传递任何东西。
You should put something like this: 您应该输入以下内容:
<%
pro(5,7);//5 and 7 are just an example
%>
Instead of what you have where you call pro
. 而不是所谓的
pro
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.