Skip to content

a #74

Description

@henriquemonteiro-create

public class SistemaMedicoPrincipal {

public static void main(String[] args) {
    // Inicialização do Scanner para leitura de dados do teclado
    Scanner sc = new Scanner(System.in);

    // ==========================================
    // ETAPA 1: CADASTRO DO PACIENTE
    // ==========================================
    System.out.println("--- CADASTRO DE PACIENTE ---");
    
    System.out.print("Nome do paciente: ");
    String nome = sc.nextLine(); // Corrigido: Inicializado e lendo String corretamente

    System.out.print("Telefone do paciente: ");
    String telefone = sc.nextLine(); // Corrigido: Tipo alterado para String (evita quebra de buffer)

    System.out.println("\nPaciente cadastrado com sucesso!");
    System.out.println("Nome: " + nome);
    System.out.println("Telefone: " + telefone);
    System.out.println("--------------------------------\n");

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions