The argument is There are the terms formal and actual arguments.
It is written in the place where the function is defined Called side
It is written where the function is called Caller
There is a difference.
public static int add(int x,int y){//1 Formal argument
return x + y;
}
public static void main(String[]args){
int x = 10;
int y = 20;
add(x,y);//2 Actual argument
}
formal argument
.actual argument
.https://qiita.com/hp_kj/items/9ffe03bf2919c99b964a In the comment section, I was told about the arguments. I investigated and summarized it.