0

I don't know why when I run this part of the code, it doesn't let me type in anything.

import java.util.Scanner;

public class IRA {

    public void select() {
        
        Scanner options = new Scanner(System.in);
        
        System.out.println("What do you want to do: \na) Add cash \nb) Invest \nc) Transfer money \nd) Exchange currencies");
        
        System.out.println("Please, enter a, b, c or d: ");

        String letter = options.nextLine();
        
        char c = letter.charAt(0);

0 Answers0