Skip to content
Snippets Groups Projects
Commit 0b44d42e authored by Harry Linrui XU's avatar Harry Linrui XU
Browse files

Made method static. Fixed bracket bug

parent 7874c9f5
No related branches found
No related tags found
1 merge request!43Merging frontend-testing into master
......@@ -53,12 +53,13 @@ public class FileHandlingBudget {
* @return True, if the budget is new. Else, returns false
* @throws IOException
*/
public boolean isNewBudget(String fileTitle) throws IOException {
public static boolean isNewBudget(String fileTitle) throws IOException {
try (BufferedReader br = new BufferedReader(
new FileReader(filePath + fileTitle + fileType))) {
for (int i = 0; i < 3; ++i)
for (int i = 0; i < 2; ++i) {
br.readLine();
}
if (br.readLine() == null) {
return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment