diff --git a/Lab 1/Lab_1.java b/Lab 1/Lab_1.java index 8217562..2dccbb1 100644 --- a/Lab 1/Lab_1.java +++ b/Lab 1/Lab_1.java @@ -23,6 +23,8 @@ public class Lab_1 { b = input.nextInt(); } while (b > m); + input.close(); + if ((a <= 0) && (n >= 0)) { System.out.println("Error, division by zero, shutting down!"); System.exit(1); diff --git a/Lab 2/Lab_2.java b/Lab 2/Lab_2.java index ab6b3e5..a999443 100644 --- a/Lab 2/Lab_2.java +++ b/Lab 2/Lab_2.java @@ -1,5 +1,4 @@ import java.util.Scanner; -import java.util.Arrays; public class Lab_2 { @@ -23,7 +22,7 @@ public class Lab_2 { } public static void main(String[] args) { - short a, rows = 0, columns = 0, width; + short a, rows = 0, columns = 0; String format; Scanner input = new Scanner(System.in);