Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. 1. String STR4SEARCH_START = "Abc";
  2.  
  3. 2. private final String STR4SEARCH_START = "Abc";
  4. 3. private static final String STR4SEARCH_START = "Abc";
  5. 4. public final String STR4SEARCH_START = "Abc";
  6. 5. public static final String STR4SEARCH_START = "Abc";
  7.  
  8. I want to use a never change String variable
  9.  
  10. public class ConstantCodes
  11. {
  12. public static final String STR4SEARCH_START = "Abc";
  13. ...
  14. ...
  15. }
  16.  
  17. String myNewVariable = ConstantCodes.STR4SEARCH_START;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement