array_-_arraylist_conversion
- Write a class
TestArrayConverter.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 different Strings,
- In the main method, write a static method
printArrthat will take a String array argument, and print it. - In the main method, write a static method
printArrthat will take an ArrayList<String> and print it; - Write a static method that takes a String array and returns an
ArrayList<String>object with the same contents. - Write a static method that takes an
ArrayList<String>object and returns String array 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 a partial solution you can use to test your conversion methods: TestArrayConverter.java
array_-_arraylist_conversion.txt · Last modified: 2018/12/10 15:46 by frchris