0
0

More than 3 years have passed since last update.

仮引数と実引数

Posted at

実引数

渡す値の事

Sample.java
 List<String> list = new ArrayList<>();
finalSample(list);//これ

add(100,200)//これ

仮引数

受け取る変数(変数名はなんでもいい)

Sample.java
 public static void finalSample(List<String> list)//これ
public static void add(int x , int y) //これ

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0