Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cs444
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
Xun Yang
cs444
Commits
419fef71
Commit
419fef71
authored
5 years ago
by
pycsham
Browse files
Options
Downloads
Patches
Plain Diff
Adding array tests
parent
9894b261
No related branches found
Branches containing commit
No related tags found
2 merge requests
!21
Master
,
!20
Master
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Tests/A5/J1_02_Array_Creation.java
+1
-1
1 addition, 1 deletion
Tests/A5/J1_02_Array_Creation.java
Tests/A5/J1_02_Array_Length.java
+8
-0
8 additions, 0 deletions
Tests/A5/J1_02_Array_Length.java
with
9 additions
and
1 deletion
Tests/A5/J1_02_Array_Creation.java
+
1
−
1
View file @
419fef71
...
@@ -4,7 +4,7 @@ public class J1_02_Array_Creation {
...
@@ -4,7 +4,7 @@ public class J1_02_Array_Creation {
public
static
int
test
(){
public
static
int
test
(){
J1_02_Array_Creation
[]
array
=
new
J1_02_Array_Creation
[
10
];
J1_02_Array_Creation
[]
array
=
new
J1_02_Array_Creation
[
10
];
array
[
0
]
=
new
J1_02_Array_Creation
();
array
[
0
]
=
new
J1_02_Array_Creation
();
array
[
10
]
=
new
J1_02_Array_Creation
();
array
[
9
]
=
new
J1_02_Array_Creation
();
return
array
[
0
].
i
;
return
array
[
0
].
i
;
}
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Tests/A5/J1_02_Array_Length.java
0 → 100644
+
8
−
0
View file @
419fef71
public
class
J1_02_Array_Length
{
public
J1_02_Array_Length
(){}
public
static
int
test
(){
J1_02_Array_Creation
[]
array
=
new
J1_02_Array_Creation
[
10
];
array
[
0
]
=
new
J1_02_Array_Creation
();
return
array
.
length
;
}
}
\ 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