Утечка ресурсов: «в» никогда не закрывается

Почему «Затмение» дает мне потепление »Утечка ресурсов: 'в' никогда не закрывается в следующем коде?

public void readShapeData() {
        Scanner in = new Scanner(System.in);
        System.out.println("Enter the width of the Rectangle: ");
        width = in.nextDouble();
        System.out.println("Enter the height of the Rectangle: ");
        height = in.nextDouble();

Ответы на вопрос(13)

Ваш ответ на вопрос