Skip to content

Instantly share code, notes, and snippets.

@mrnirva
Created September 4, 2020 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrnirva/0654db0667d80a78930316d4d2c5e57b to your computer and use it in GitHub Desktop.
Save mrnirva/0654db0667d80a78930316d4d2c5e57b to your computer and use it in GitHub Desktop.
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