Implement Equivalent Ones in Java.: Lab02: Arrays and Linked Lists
Implement Equivalent Ones in Java.: Lab02: Arrays and Linked Lists
Note: The codes are given in C++, but you can choose to
implement equivalent ones in Java.
Ex1.
Consider the following definition for an array. Note
that you have to devise of a way to test all of your
implemented functions.
static const int MAX = 500;
int array[MAX];
int length = 0; //The size of the array
1. Write a function to create a new array from a file
where all space-separated numbers are shown on the
first line:
Ex2.
Consider the following definition for a linked list.
Note that you have to devise of a way to test all of your
implemented functions.