mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-12-19 07:00:35 +08:00
style: resolve some FCBL_FIELD_COULD_BE_LOCAL warnings (#5764)
style: make simple fields local
This commit is contained in:
@@ -6,7 +6,6 @@ import java.util.Scanner;
|
||||
class Cycle {
|
||||
|
||||
private final int nodes;
|
||||
private final int edges;
|
||||
private int[][] adjacencyMatrix;
|
||||
private boolean[] visited;
|
||||
ArrayList<ArrayList<Integer>> cycles = new ArrayList<ArrayList<Integer>>();
|
||||
@@ -16,7 +15,7 @@ class Cycle {
|
||||
System.out.print("Enter the no. of nodes: ");
|
||||
nodes = in.nextInt();
|
||||
System.out.print("Enter the no. of Edges: ");
|
||||
edges = in.nextInt();
|
||||
final int edges = in.nextInt();
|
||||
|
||||
adjacencyMatrix = new int[nodes][nodes];
|
||||
visited = new boolean[nodes];
|
||||
|
||||
Reference in New Issue
Block a user