Yeah, i know i need to use the new keyword.The confusion is in the constructor
MyDate today = new MyDate(...with regards to my example,what goes in here?...);
Strings don't work
Type: Posts; User: ojonugwa
Yeah, i know i need to use the new keyword.The confusion is in the constructor
MyDate today = new MyDate(...with regards to my example,what goes in here?...);
Strings don't work
Let's say i have this code:
import java.util.Date;
public class MyDate {
Date newDate;
public MyDate(Date date) {