Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
idatt1002_2023_9
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Kluge Svendsrud
idatt1002_2023_9
Commits
0b44d42e
Commit
0b44d42e
authored
1 year ago
by
Harry Linrui XU
Browse files
Options
Downloads
Patches
Plain Diff
Made method static. Fixed bracket bug
parent
7874c9f5
No related branches found
No related tags found
1 merge request
!43
Merging frontend-testing into master
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/no/ntnu/idatt1002/demo/data/Budget/FileHandlingBudget.java
+3
-2
3 additions, 2 deletions
...o/ntnu/idatt1002/demo/data/Budget/FileHandlingBudget.java
with
3 additions
and
2 deletions
src/main/java/no/ntnu/idatt1002/demo/data/Budget/FileHandlingBudget.java
+
3
−
2
View file @
0b44d42e
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment