Guest User

Untitled

a guest
Dec 12th, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. public class TestSampleVariableAssgment{
  2.  
  3. public static void callVarAssignment(){
  4. List<String> sa = new List<String>();
  5. system.debug('Before ======>' + sa);
  6. CheckVariableChange.abc(sa);
  7. system.debug('After ======>' + sa);
  8. }
  9.  
  10. }
  11.  
  12. public class CheckVariableChange{
  13.  
  14. public static void abc(List<String> sampleString){
  15. sampleString.add('Hello');
  16. }
  17.  
  18. }
  19.  
  20. TestSampleVariableAssgment.callVarAssignment();
Add Comment
Please, Sign In to add comment