Created
September 4, 2020 18:59
-
-
Save mrnirva/0654db0667d80a78930316d4d2c5e57b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package metotlar; | |
public class Metotlar { | |
public static void main(String[] args) { | |
// Parametre Alan ve Değer Döndürmeyen Metot | |
// Metodu bu şekilde çağırırız | |
adSoyadYazdir("James","Gosling"); | |
} | |
// Metot oluşturmak | |
/* | |
2 Değişken'i parametre olarak verdik ve bunları | |
metot içersinide çağırıp kullandık | |
*/ | |
static void adSoyadYazdir(String ad, String soyad){ | |
System.out.println(ad + " " + soyad); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment