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 donguler; | |
public class Donguler { | |
public static void main(String[] args) { | |
// Do - While Döngüsü | |
int sayi = 0; | |
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 donguler; | |
public class Donguler { | |
public static void main(String[] args) { | |
// While Döngüsü - Faktöriyel Örneği | |
// Aşağıdaki döngü 10! faktöriyeli bulup yazar | |
// 10! = 1*2*3*4*5*6*7*8*9*10 |
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 donguler; | |
public class Donguler { | |
public static void main(String[] args) { | |
// While Döngüsü | |
int sayi = 0; | |
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 donguler; | |
public class Donguler { | |
public static void main(String[] args) { | |
// For-each -> For döngüsünün array tipler için kısaltılmış halidir. | |
int[] sayilar = {5,10,15,20,25}; | |
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 donguler; | |
public class Donguler { | |
public static void main(String[] args) { | |
// 10'dan Geriye Sayan Örnek | |
for(int i=10; i>0; i--){ | |
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 donguler; | |
public class Donguler { | |
public static void main(String[] args) { | |
for(int i=0; i<10; i++){ | |
System.out.println("Merhaba Dünya"); | |
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 arrayssinifi; | |
public class ArraysSinifi { | |
public static void main(String[] args) { | |
int[][] dizim = new int[2][3]; | |
// İlk köşeli parantezin içi satır | |
// İkinci köşeli parantezin içi sütun |
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 arrayssinifi; | |
import java.util.Arrays; | |
public class ArraysSinifi { | |
public static void main(String[] args) { | |
/* | |
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 arrayssinifi; | |
import java.util.Arrays; | |
import java.util.Collections; | |
public class ArraysSinifi { | |
public static void main(String[] args) { | |
String[] programlamaDilleri = {"C++","Java","COBOL","C","Assembly","Python"}; |
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 arrayssinifi; | |
import java.util.Arrays; | |
public class ArraysSinifi { | |
public static void main(String[] args) { | |
// Kaynak ve Hedef array oluşturuldu | |