Advertisement
Guest User

Untitled

a guest
May 29th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.01 KB | None | 0 0
  1. /*
  2.  * To change this template, choose Tools | Templates
  3.  * and open the template in the editor.
  4.  */
  5.  
  6. package cardapio;
  7. import java.util.Scanner;
  8. /**
  9.  *
  10.  * @author Felipe Viana
  11.  */
  12. public class Main {
  13. public static void cardapio (int op,String s){
  14.  
  15.     Scanner obj = new Scanner(System.in);
  16.     while (s != "Não"){
  17.        
  18.                
  19.      
  20.  
  21.         System.out.print("Insira o primeiro número : ");
  22.         int a = obj.nextInt();
  23.        
  24.                
  25.       if(op == 1){
  26.          System.out.println("Feijao");
  27.         }
  28.  
  29.         if(op == 2){
  30.          System.out.println("Macarrao");
  31.         }
  32.  
  33.         if(op == 3){
  34.          System.out.println("Arroz");
  35.         }
  36.  
  37.         if(op == 4){
  38.           System.out.println("Café");
  39.         }
  40.         System.out.println("Deseja Continuar?: ");
  41.         String b = obj.nextLine();
  42.     }
  43.            
  44.    
  45. }
  46.  
  47.  
  48.     public static void main(String[] args) {
  49.    
  50.  
  51.         cardapio(0,);
  52.         // TODO code application logic here
  53.     }
  54.  
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement