0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

メソッド

Posted at

メソッドとは

public static voidを使用するとメソッドが作成されます。
メソッドでは引数を渡すことも可能です。

メソッドの作成方法
public satic void メソッド名(引数){
メソッドで行う処理内容
}
メソッドの呼び出し方法
メソッド名(引数)

メソッドの利点

メソッドは複数の処理をまとめ、一つの処理として扱う事が出来ます。
これにより、複雑な処理を行う際もプログラムが見やすくなり便利です。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?