SHARE
TWEET

Untitled

a guest Oct 21st, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. List numberList = List.of({1,2,3,4,5});
  2. var newNumber = 6;
  3. numberList.add(newNumber);
  4. print(numberList);
  5. // Result: [1,2,3,4,5,6]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top