Question: Part b-EclipselJava 1. Write a java program that calls a method called removeZeroes that takes as a parameter an ArrayList of integers and eliminates any
Part b-EclipselJava 1. Write a java program that calls a method called removeZeroes that takes as a parameter an ArrayList of integers and eliminates any occurrences of the number 0 from the list. For example, if the list stores the values [0, 4, 5, 0,6, 0, 1] before the method is called, it should store the values [4, 5, 6, 1] after the method finishes executing. Print the ArrayList before and after the method call 2. Write a class called MyDate that includes three fields year, month and day. This class stores information about a single date (year, month and day). Your class should have constructor(s), accessors and mutators and it should implement the Comparable interface. Years take precedence over months, which take precedence over days. For example, Feb 19, 2016 comes after Nov 20, 2015 Write a client class that creates objects of the Date class and sorts them. The following example creates a list of the birthdays of the first 5 U.S. presidents in random order and puts them into sorted order. (Note: you can use Collections.sortO to sort your ArrayList after you implement the compareToO method) ArrayList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
