mirror of
https://bitbucket.org/Mattrixwv/projecteulerjava.git
synced 2025-12-06 17:13:58 -05:00
Update sonarqube findings
This commit is contained in:
@@ -37,7 +37,7 @@ public class Problem11 extends Problem{
|
||||
//Variables
|
||||
//Static variables
|
||||
//This is the grid of numbers that we will be working with
|
||||
protected static String FILE_NAME = "files/Problem11Grid.txt";
|
||||
protected static String fileName = "files/Problem11Grid.txt";
|
||||
protected static ArrayList<List<Integer>> grid;
|
||||
//Instance variables
|
||||
protected List<Integer> greatestProduct; //Holds the largest product we have found so far
|
||||
@@ -50,11 +50,11 @@ public class Problem11 extends Problem{
|
||||
}
|
||||
//Operational functions
|
||||
//Read numbers from file into grid
|
||||
private void readFile(){
|
||||
private static void readFile(){
|
||||
if(grid != null){
|
||||
return;
|
||||
}
|
||||
File file = new File(FILE_NAME);
|
||||
File file = new File(fileName);
|
||||
if(file.exists()){
|
||||
try{
|
||||
List<String> lines = Files.readAllLines(file.toPath());
|
||||
|
||||
Reference in New Issue
Block a user