Skip to content
Snippets Groups Projects
Commit 419fef71 authored by pycsham's avatar pycsham
Browse files

Adding array tests

parent 9894b261
No related branches found
No related tags found
2 merge requests!21Master,!20Master
...@@ -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
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
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