mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-23 12:35:55 +08:00
Cleaned up code for some packages (#5094)
* Cleaned up code of some packages --------- Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
This commit is contained in:

committed by
GitHub

parent
40cd4d86ef
commit
22310defcd
@ -6,8 +6,8 @@ import java.util.Scanner;
|
||||
|
||||
public class MatrixChainMultiplication {
|
||||
|
||||
private static Scanner scan = new Scanner(System.in);
|
||||
private static ArrayList<Matrix> mArray = new ArrayList<>();
|
||||
private static final Scanner scan = new Scanner(System.in);
|
||||
private static final ArrayList<Matrix> mArray = new ArrayList<>();
|
||||
private static int size;
|
||||
private static int[][] m;
|
||||
private static int[][] s;
|
||||
@ -115,9 +115,9 @@ public class MatrixChainMultiplication {
|
||||
|
||||
class Matrix {
|
||||
|
||||
private int count;
|
||||
private int col;
|
||||
private int row;
|
||||
private final int count;
|
||||
private final int col;
|
||||
private final int row;
|
||||
|
||||
Matrix(int count, int col, int row) {
|
||||
this.count = count;
|
||||
|
Reference in New Issue
Block a user