Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
flooding-template
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
SAIDI Hatim
flooding-template
Commits
607ff9c0
Commit
607ff9c0
authored
2 years ago
by
SAIDI Hatim
Browse files
Options
Downloads
Patches
Plain Diff
test
parent
82b7260a
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/src/main/java/model/ArrayGrid.java
+21
-0
21 additions, 0 deletions
app/src/main/java/model/ArrayGrid.java
app/src/main/java/model/SquareCell.java
+0
-1
0 additions, 1 deletion
app/src/main/java/model/SquareCell.java
with
21 additions
and
1 deletion
app/src/main/java/model/ArrayGrid.java
0 → 100644
+
21
−
0
View file @
607ff9c0
package
model
;
public
class
ArrayGrid
implements
Grid
{
private
Cell
[][]
cells
;
private
final
int
numberOfRows
;
private
final
int
numberOfColumns
;
public
ArrayGrid
(
int
numberOfRows
,
int
numberOfColumns
){
this
.
numberOfRows
=
numberOfRows
;
this
.
numberOfColumns
=
numberOfColumns
;
this
.
cells
[
numberOfRows
][
numberOfColumns
]=
new
SquareCell
();
try
{
System
.
out
.
println
(
numberOfColumns
<
0
||
numberOfRows
<
0
);
}
catch
(
IllegalArgumentException
e
){
System
.
out
.
println
(
e
);
}
}
}
This diff is collapsed.
Click to expand it.
app/src/main/java/model/SquareCell.java
+
0
−
1
View file @
607ff9c0
...
@@ -36,5 +36,4 @@ public class SquareCell extends AbstractCell {
...
@@ -36,5 +36,4 @@ public class SquareCell extends AbstractCell {
this
.
neighbours
.
set
(
i
,
cells
.
get
(
i
));
this
.
neighbours
.
set
(
i
,
cells
.
get
(
i
));
}
}
}
}
}
}
\ No newline at end of file
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