I have been working on java since first week of october and I can't seem to continue this problem. I fix one problem and another keeps showing up. I am using Blue J and I am trying to add an array to the responses array. here is the code:
public class eDiary{
public static void main (String args[]){
int [] days = {1,2,3,4,5,6,7};
String [] responses;
int i = 0;
for(i=0; i<7; i++){
String response = Console.readString("What is your major event for day " + days[i]);
responses[responses.length] = responses;
}
}
}
I am trying to make the user type in a major event for the day. Each event is supposed to add itself to the responses array as it corresponds to the days array (response 1 corresponds to day 1) I am not finished with the code but this is part one. The error keeps mentioning incompatible types on "responses[responses.length] = responses; How can I take care of this. There could be more errors as BlueJ seems to show them one at a time.