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 Branching { | |
public static void main(String[] args) { | |
disifade: | |
for (int i = 0; i < 100; i++) { | |
for (int j = 0; j < 50; j++) { |
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
import java.util.Scanner; | |
import javax.print.DocFlavor.INPUT_STREAM; | |
public class SwitchIfadesi { | |
public static void main(String[] args) { | |
System.out.println("Menyudan secim edin:"); | |
System.out.println("1.Magazalar"); |
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 DizilerArrays { | |
public static void main(String[] args) { | |
int tamsaylar[] = new int[5]; | |
for (int i = 0; i < tamsaylar.length; i++) { | |
System.out.println("index: " +i+" deyer: "+tamsaylar[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
import java.util.Scanner; | |
public class DordIslem { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
while (true) { | |
System.out.println("Ne etmek isteyirsiniz?"); | |
System.out.println("1.Vurma, 2.Bolme, 3.Toplama, 4.Cixma"); |
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 For { | |
public static void main(String[] args) { | |
for (int i = 1; i < 1; i++) { | |
System.out.println(i); | |
} | |
//break & continue |
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
import java.util.Scanner; | |
public class IfKontrolleri { | |
public static void main(String[] args) { | |
System.out.println("yasinizi daxil edin:"); | |
Scanner sc = new Scanner(System.in); |