array_-_arraylist_conversion
This is an old revision of the document!
- Write a class
Tester.javathat 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
arrayof String and returns anArrayList<String>object with the same contents. - Write a static method that takes an
ArrayList<String>object and returns anarrayofStringwith the same contents. - In the main method call the other methods you made and print the results to see if it its working.
array_-_arraylist_conversion.1544464521.txt.gz · Last modified: 2018/12/10 12:55 by frchris