diff --git a/OOP/Java/Lab/Week4/SearchCount.java b/OOP/Java/Lab/Week4/SearchCount.java index ed29b74..4fb9389 100644 --- a/OOP/Java/Lab/Week4/SearchCount.java +++ b/OOP/Java/Lab/Week4/SearchCount.java @@ -11,11 +11,12 @@ class SearchCount { int n = sc.nextInt(); int[][] matrix = new int[m][n]; - System.out.println("Enter the elements of the matrix:"); - int count = 0; + System.out.println("Enter the element to search for:"); int searchElement = sc.nextInt(); + System.out.println("Enter the elements of the matrix:"); + int count = 0; for (int i = 0; i < m; i++) { for (int j = 0; j < n; j++) { int element = sc.nextInt();