Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- package cardapio;
- import java.util.Scanner;
- /**
- *
- * @author Felipe Viana
- */
- public class Main {
- public static void cardapio (int op,String s){
- Scanner obj = new Scanner(System.in);
- while (s != "Não"){
- System.out.print("Insira o primeiro número : ");
- int a = obj.nextInt();
- if(op == 1){
- System.out.println("Feijao");
- }
- if(op == 2){
- System.out.println("Macarrao");
- }
- if(op == 3){
- System.out.println("Arroz");
- }
- if(op == 4){
- System.out.println("Café");
- }
- System.out.println("Deseja Continuar?: ");
- String b = obj.nextLine();
- }
- }
- public static void main(String[] args) {
- cardapio(0,);
- // TODO code application logic here
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement