I'm trying to create a journal that has a reminder class to add just the reminder out of the journal.
Well, I have a problem here at school and I wanted to know one thing, how to make the text I wrote get saved, even after closing the console, that text stays there.
Note: I have to use a queue, I'm not using forms and it has to be object-oriented. If you want to understand better put the code here.
CLASS CODE REMINDER:
private String annotate; private String data; private String importance;
public Lembrete(String anotarx, String datax)
{
anotar = anotarx;
data = datax;
importancia = Importancias.RAZOAVEL;
}
public String Anotar
{
get
{
return anotar;
}
set
{
anotar = value;
}
}
public String Data
{
get
{
return data;
}
set
{
data = value;
}
}
public String Importancia
{
get
{
return importancia;
}
set
{
importancia = value;
}
}
public String RetornarLembrete()
{
String texto = "";
texto = anotar + "" + data;
return texto;
}
}