Answers for "what is never closed java"

0

what is never closed java

public void readShapeData() throws IOException {
    Scanner in = new Scanner(System.in);
    try {
        System.out.println("Enter the width of the Rectangle: ");
        width = in.nextDouble();
        System.out.println("Enter the height of the Rectangle: ");
        height = in.nextDouble();
    } finally {
        in.close();
    }
}
Posted by: Guest on January-13-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language