Created
September 14, 2014 12:16
-
-
Save javadovjavad/bb25d612459eee576cdf to your computer and use it in GitHub Desktop.
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"); | |
System.out.println("2.Urunler"); | |
System.out.println("3.Personal"); | |
Scanner sc = new Scanner(System.in); | |
int giriler = sc.nextInt(); | |
switch (giriler) { | |
case 1: | |
System.out.println("Seciminiz Magazalar"); | |
break; | |
case 2: | |
System.out.println("Seciminiz Urunler"); | |
break; | |
case 3: | |
System.out.println("Seciminiz Personel"); | |
break; | |
default: | |
break; | |
} | |
System.out.println("Sistemden ciktiniz"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment