title: Alternative practice for hard coding text strings in a Java program?
body: <p>In my program I have lots of string and repeated strings. Is there a way to separate the text strings from the source code. I do not want to hardcode the string within my program.</p>
  
  <p>In PHP I used to have a file with list variables for each string. But because Java is OOP I do not know how to implement the same idea.</p>
  
  <p>My program is a command line program.</p>