I am trying to add the data of textview into array. myLogClass is a array list and The codes is as follows:
String txt_datetime = txt_date.getText().toString();;
String txt_messageData = txt_message.getText().toString();
String txt_day = this.dayName;
List< myLogClass > results = null;
results = new ArrayList< myLogClass >();
results.add( new myLogClass( txt_datetime, txt_messageData, txt_day ) );
I have setter and getter method in myLogClass and has constructor with 3 variable which is as follows:
public diaryLogs(int dateTime, String messagetxt, String dayN){
setDayCode(dateTime);
setDateTime(messagetxt);
setDairyText(dayN);
}//end constructor.
While i tried to add method it says the constructor is undefined.
Thanks for your help in advance