Skip to content

Instantly share code, notes, and snippets.

View denizfurkan's full-sized avatar
💭
I may be slow to respond.

Furkan denizfurkan

💭
I may be slow to respond.
  • Ankara
View GitHub Profile
public class Main {
public static void main(String[] args) {
String str = new String("codingtr.com");
}
}
public/*[Erişim Belirleyici]*/ class/*[Class]*/ Kedi/*[Class İsmi]*/ {
public int kilo;
public int hiz;
public String cins;
public String renk;
}
public/*[Erişim Belirleyici]*/ class/*[Class]*/ Agac/*[Class İsmi]*/ {
public String agacTuru;
public int agacYasi;
}
public/*[Erişim Belirleyici]*/ class/*[Class]*/ Araba/*[Class İsmi]*/ {
public String rengi;
public String markasi;
public String modeli;
public int fiyati;
public int yakitTipi;
public int agirligi;
}
public class Main {
public static void main(String[] args) {
Integer a = 5;
Integer b = 7;
Integer toplam=0;
toplam= a+ b;
.
.
.
}
public class Main {
public static void main(String[] args) {
Integer a = new Integer(5);
}
}
public class Ogrenci {
public String ad;
public String soyad;
public int numara;
}
public class MainClass {
public static void main(String[] args) {
Ogrenci ogrenci1 = new Ogrenci(); // ogrenci1 adında Ogrenci Sınıfında Nesne Oluşturma.
}
}
public class MainClass {
public static void main(String[] args) {
Ogrenci ogrenci1 = new Ogrenci();
System.out.println("Ad :" + ogrenci1.ad);
System.out.println("Soyad :" + ogrenci1.soyad);
System.out.println("Numara :" + ogrenci1.numara);
}
}
public class MainClass {
public static void main(String[] args) {
Ogrenci ogrenci1 = new Ogrenci();
ogrenci1.ad="Furkan";
ogrenci1.soyad="Bodur";
ogrenci1.numara=21793999;
System.out.println("Ad :" + ogrenci1.ad);
System.out.println("Soyad :" + ogrenci1.soyad);