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

6
LINES

< > BotCompany Repo | #1028343 // lastIndexOf_byteArray

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2479L/16K).

static int lastIndexOf_byteArray(byte[] a, byte b) {
  for (int i = l(a)-1; i >=0; i--)
    if (a[i] == b)
      ret i;
  ret -1;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028343
Snippet name: lastIndexOf_byteArray
Eternal ID of this version: #1028343/1
Text MD5: 7e498145cdd161d3807e2339a8f98068
Transpilation MD5: a43ff56355616ea5396d9f346ca33a2e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-12 21:49:02
Source code size: 136 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 168 / 247
Referenced in: [show references]