Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

18
LINES

< > BotCompany Repo | #1013119 // Test Cases for List Length

Document

if i make a list of 3 elements and add one more
  - how long is the new list?
=> 4 elements

if i have a list of 10 elements - how long is it?
=> 10 elements

if i have an empty list - how long is it?
=> 0 elements

if i have an empty list and add 3 elements - how long is it then?
=> 3 elements

if my list has 5 elements and I then add 3 elements - how long is it finally?
=> 8 elements

if i have 3 elements and add 10 - how long is the list?
=> 13 elements

download  show line numbers   

Travelled to 13 computer(s): aoiabmzegqzx, aovkdhyilamm, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1013119
Snippet name: Test Cases for List Length
Eternal ID of this version: #1013119/4
Text MD5: 939d83ea47208ed8700405255176013d
Author: stefan
Category: javax / a.i.
Type: Document
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-25 22:42:47
Source code size: 477 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 364 / 303
Version history: 3 change(s)
Referenced in: [show references]