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

7
LINES

< > BotCompany Repo | #1008859 // countOccurrences_id - uses ==

JavaX fragment (include)

static int countOccurrences_id(Collection c, O x) {
  int n = 0;
  if (c != null) for (O o : c)
    if (o == x)
      ++n;
  ret n;
}

Author comment

Began life as a copy of #1004161

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: #1008859
Snippet name: countOccurrences_id - uses ==
Eternal ID of this version: #1008859/1
Text MD5: 1e39fdb6990e398c0511588e905fd60d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-06-14 13:32:46
Source code size: 139 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 537 / 594
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1008879 - countOccurrences