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
public class Main { | |
public static void main(String[] args) { | |
String str = new String("codingtr.com"); | |
} | |
} |
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
public/*[Erişim Belirleyici]*/ class/*[Class]*/ Kedi/*[Class İsmi]*/ { | |
public int kilo; | |
public int hiz; | |
public String cins; | |
public String renk; | |
} |
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
public/*[Erişim Belirleyici]*/ class/*[Class]*/ Agac/*[Class İsmi]*/ { | |
public String agacTuru; | |
public int agacYasi; | |
} |
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
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; | |
} |
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
public class Main { | |
public static void main(String[] args) { | |
Integer a = 5; | |
Integer b = 7; | |
Integer toplam=0; | |
toplam= a+ b; | |
. | |
. | |
. | |
} |
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
public class Main { | |
public static void main(String[] args) { | |
Integer a = new Integer(5); | |
} | |
} |
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
public class Ogrenci { | |
public String ad; | |
public String soyad; | |
public int numara; | |
} |
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
public class MainClass { | |
public static void main(String[] args) { | |
Ogrenci ogrenci1 = new Ogrenci(); // ogrenci1 adında Ogrenci Sınıfında Nesne Oluşturma. | |
} | |
} |
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
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); | |
} | |
} |
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
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); |
OlderNewer