1 | static int countNotNull(Collection c) { |
2 | int n = 0; |
3 | if (c != null) for (O a : c) |
4 | if (a != null) ++n; |
5 | ret n; |
6 | } |
Began life as a copy of #1010440
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1010969 |
Snippet name: | countNotNull |
Eternal ID of this version: | #1010969/1 |
Text MD5: | a64a5e12f910f54ab2e9f0df1ffdaed6 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-10-10 19:45:11 |
Source code size: | 123 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 485 / 513 |
Referenced in: | [show references] |