Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!

Josiah smith

Greenhorn
+ Follow
since Feb 07, 2012
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Josiah smith

Ahh. I think I found it. Should be

???
10 years ago
I am at work and don't have jdk ability right now, but if i used

Will that solve my problem?
10 years ago
I am having problems with the accessor method at for the generateRandomDate. The method should return a date in MM/DD/YEAR.
//return new Date(month, day, year); But instead I get a long date? This is causing problems using a dateComparator to sort the queue. Can someone identify what I am missing???



The date comprator that I am using is:

10 years ago
Yes,
First If I select no to search for a date: it works fine.
If I select yes and enter a date that would be a duplicate it continues to have me enter more dates instead of deleting the date and prompting if you would like to search for a date again. I think that I have the loops set up wrong and somehow need a Do while loop. It probably is an easy one, just not popping out at me... Thanks for your help
10 years ago
I am having some problems with the loops in this code that should delete different dates from an array. Can you find what I am doing wrong??

10 years ago
Hello,
Sorry If i double spaced i have been working on this for days. This is what I am coming up with to detect and prompt removal for the duplicate dates. I am having a rough time though. I think my error lies in the condional statement. I have been working on this for days and nobody has really been able to help me. Thank you very much for your time.
V/r,
Josiah
10 years ago
Do you have any examples of code that uses iterators and the contains method. The code I created works for integers within an array, but when I make the array contain dates it doesn't produce the correct output.

Thanks for your help
10 years ago
I am trying to modify the ArrayListofDates so that after generating the random dates it loops thru the Dates and checks to see if it is already in the arraylist. If there is a duplicate it then should prompt the user if they want to remove that date from the array. I am trying to use the contains and remove method of array list. Here is the code and it compiles fine but does not work as intended.



Any suggestions would be greatly appreciated.
10 years ago