Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  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]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement