Whenever I try to write double expression its gime me an error

            case 1:
                System.out.println("Enter name of the cloth:");
                String cName = CONSOLE.next();
                CONSOLE.nextLine();
                System.out.println("Please enter the tax rate:");
                double txRate = CONSOLE.nextDouble();
                System.out.println("Enter the price of it:");
                double price = CONSOLE.nextDouble();
                System.out.println("What is the brand of it:");
                String brand = CONSOLE.nextLine();
                System.out.println("What is the color of it:");
                String color = CONSOLE.nextLine();
                System.out.println("Please enter the number of product:");
                double quantity = CONSOLE.nextDouble();
                addCloth(cName,txRate,price,brand,color,quantity);
                break;

Whenever I try to write double expression on CONSOLE.nextDouble(); Its give me an error Why?