Skip to content

a #74

@henriquemonteiro-create

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");

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