User Tools

Site Tools


array_-_arraylist_conversion

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
array_-_arraylist_conversion [2018/12/10 14:49] frchrisarray_-_arraylist_conversion [2018/12/10 15:39] frchris
Line 1: Line 1:
   - Write a class ''Tester.java'' that has a main method that does the following:   - 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 methodcreate a String Array of 5 Strings 
-   - In the main method create an ArrayList of 5 Strings,  +   - In the main methodcreate an ArrayList of 5 different Strings,  
-   - In the main method print both the Arry and the ArrayList+   - In the main method, write a static method ''printer'' that will take a String array argument, and print it. 
 +   - In the main method, write a static method ''printArr'' that will take an ArrayList<String> and print it;
   - Write a static method that takes an ''array'' of String and returns an ''ArrayList<String>'' object with the same contents.   - Write a static method that takes an ''array'' of String and returns an ''ArrayList<String>'' object with the same contents.
   - Write a static method that takes an ''ArrayList<String>'' object and returns an ''array'' of ''String'' with the same contents.   - Write a static method that takes an ''ArrayList<String>'' object and returns an ''array'' of ''String'' with the same contents.
array_-_arraylist_conversion.txt · Last modified: 2018/12/10 15:46 by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki