array_-_arraylist_conversion
This is an old revision of the document!
- Write a class
Tester.java
that has a main method that does the following: - In the main method create a String Array of 5 Strings
- In the main method create an ArrayList of 5 Strings,
- In the main method print both the Arry and the ArrayList
- Write a static method that takes an
array
of String and returns anArrayList<String>
object with the same contents. - Write a static method that takes an
ArrayList<String>
object and returns anarray
ofString
with the same contents. - In the main method call the other methods you made and print the results to see if it its working.
If you are in a hurry here is the partial solution: TestArrayConverter.java
array_-_arraylist_conversion.1544471328.txt.gz · Last modified: 2018/12/10 14:48 by frchris