I am trying to put all the String in a separate public class, the compiler is against, how to persuade it? My texts for the user are quite long, if you remove them from the main class, the code will not be overloaded with unnecessary text and will become more readable?
public static void main(String[] args){ System.out.println(hello); System.out.println(w_up); System.out.println(bye); } public class stingsStore{ String hello = "Здравствуйте дорогие друзья"; String w_up = "Очень рад, бла-бла-бла. Как поживаете?"; String bye = "Ну всё пока, потом ещё куча текста..."; } Thank.
public static final String. - pavel