简体   繁体   English

prosedure_jsp类型的pro(int,int)方法不适用于参数()

[英]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 aint 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.

相关问题 类型中的方法不适用于参数(int) - The method in the type is not applicable for the arguments (int) main类型的方法(double [])不适用于参数(int []) - The method (double[]) in the type main is not applicable for the arguments (int[]) ArrayBoss 类型中的方法 (int[]) 不适用于参数 () - The method (int[]) in the type ArrayBoss is not applicable for the arguments () 类型X中的方法X不适用于参数(int) - The method X in the type X is not applicable for the arguments (int) Arrays 类型中的 asList(T[]) 方法不适用于参数 (int, int) - The method asList(T[]) in the type Arrays is not applicable for the arguments (int, int) PreparedStatement 类型中的 setString(int, String) 方法不适用于参数 (int, String[]) - The method setString(int, String) in the type PreparedStatement is not applicable for the arguments (int, String[]) FragmentTransaction类型的方法add(int,Fragment)不适用于参数(int,WeatherFragment) - The method add(int, Fragment) in the type FragmentTransaction is not applicable for the arguments (int, WeatherFragment) BufferedImage类型的方法getRGB(int,int)不适用于参数(..) - The method getRGB(int, int) in the type BufferedImage is not applicable for the arguments (..) ArrayList 类型中的方法 set(int, Int)<int> 不适用于 arguments (int, int) 长度无法解析或不是字段</int> - The method set(int, Int) in the type ArrayList<Int> is not applicable for the arguments (int, int) length cannot be resolved or is not a field 方法 sum(int, int, int, int) 不适用于参数 (int) - The method sum(int, int, int, int) is not applicable for the arguments (int)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM