Strings in JAVA [duplicate]

0

Once I worked with a program where I had a txt file with all values of strings and in the code I just referred, so everywhere I used the same string I just needed to change in txt and there was still no problem using accents or characters special (@, #, %, *)

I'm using Eclipse IDE, I do not know if anything changes ...

An example, when I create a JLabel and want to set the text of it I used:

myLabel.setText("arquivotxt.mystrings.boasvindas");

And in the txt file was the line:

arquivotxt.mystrings.boasvindas = "Bem vindos!"

Does anyone know what I'm talking about? Because I need to make my program better ...

    
asked by anonymous 29.01.2018 / 11:50

0 answers