Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HW04 - JCFIteratorDemo #5

Closed
chulderman opened this issue Mar 15, 2016 · 6 comments
Closed

HW04 - JCFIteratorDemo #5

chulderman opened this issue Mar 15, 2016 · 6 comments

Comments

@chulderman
Copy link
Owner

  1. The “main()” method in the JCFIteratorDemo class is called the start the App.
  2. The JCFIteratorDemo class then directs the ArrayGen class to generate an int[] array with 20 elements, having ascending values from 1 through 20.
  3. The JCFIterator class is passed the reference to this array. The JCFIteratorDemo class then directs the ArrayListGen class to generate an ArrayList; it is then filled with the elements from the int[] array;
  4. The JCFIteratorDemo class then builds an Iterator class that finds all the odd elementsin the ArrayList class and prints them to the command line;
  5. The JCFDemo class then directs the SingleLink class to build a SinglyLinkedList and fill it with elements from the int[] array. The SingleLink class will then pass the reference to this SinglyLinkedList back to the JCFIteratorDemo class.
  6. The JCFIteratorDemo class then builds an Iterator to find all the even elements within the SinglyLinkedList and print them to the command line;
@chulderman chulderman assigned ghost and chulderman and unassigned ghost and chulderman Mar 15, 2016
@chulderman
Copy link
Owner Author

Most of this is done already. This will be the last issue to close.

@ghost
Copy link

ghost commented Mar 19, 2016

I will work finishing this up now. If I find any errors in any of the classes I'll try and fix them and let you know if I get stuck

@ghost
Copy link

ghost commented Mar 20, 2016

Everything appears to work properly now, so I'll close this issue.

@ghost ghost closed this as completed Mar 20, 2016
@ghost ghost reopened this Mar 22, 2016
@ghost
Copy link

ghost commented Mar 22, 2016

This should be finished now, but I will wait to close it until everything else completed. I won't be merging anything back up to master until you've looked at it all, so please work off my branch when you get around to it.

@ghost ghost closed this as completed Mar 22, 2016
@ghost ghost reopened this Mar 22, 2016
@chulderman
Copy link
Owner Author

@mjmillan - It'd be nice to change this to static. The constructor would be private and then we'd implement final values and static methods. It doesn't make sense for this to have instances. It makes no semantic sense.

@ghost
Copy link

ghost commented Mar 23, 2016

Professor Brooks specially said not to do that in class (if I understand your suggestion properly).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant