User Tools

Site Tools


array_-_arraylist_conversion

This is an old revision of the document!


  1. Write a class Tester.java that has a main method that does the following:
  2. - creates a String Array of 5 Strings
  3. - Creates an ArrayList of 5 Strings,
  4. - prints both
  5. Write a static method that takes an array of String and returns an ArrayList<String> object with the same contents.
  6. Write a static method that takes an ArrayList<String> object and returns an array of String with the same contents.
array_-_arraylist_conversion.1544464376.txt.gz · Last modified: 2018/12/10 12:52 by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki