14
Витік ресурсу: "in" ніколи не закривається
Чому Eclipse дає мені пригрів "Витік ресурсу:" in "ніколи не закривається" в наступному коді? 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();