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

5
LINES

< > BotCompany Repo | #1035734 // assertDivisibleBy

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

Libraryless. Click here for Pure Java version (13023L/74K).

static int assertDivisibleBy(int divisor, int a) {
  if ((a % divisor) != 0)
    fail("Not divisible by " + divisor + ":" + a);
  ret a;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035734
Snippet name: assertDivisibleBy
Eternal ID of this version: #1035734/1
Text MD5: 8effbd648f2bcaebd6bdbd34d2b36083
Transpilation MD5: f0964dd7ab5cf6ff1b0fcd83370d75e9
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-07-17 20:51:10
Source code size: 142 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 65 / 85
Referenced in: [show references]