Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public ArrayList<String> generateSpecMed(){
- ArrayList<String> medSpec = new ArrayList <String>();
- Scanner myObj = new Scanner(System.in);
- String specialty = new String();
- String out = "Digite as especialidades, uma por linha, digite 0 para sair";
- do{
- specialty = myObj.nextLine();
- if(specialty.equals("0"))
- break;
- if(searchEsp(specialty)){
- medSpec.add(specialty);
- }
- else{
- String error = "Especialidade nao encontrada";
- }
- }while(true);
- return medSpec;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement