Skip to content

Instantly share code, notes, and snippets.

@javadovjavad
Created September 14, 2014 12:16
Show Gist options
  • Save javadovjavad/bb25d612459eee576cdf to your computer and use it in GitHub Desktop.
Save javadovjavad/bb25d612459eee576cdf to your computer and use it in GitHub Desktop.
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