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

12
LINES

< > BotCompany Repo | #1034752 // Test primitive conversions Scratchpad

JavaX (incomplete)

embedded void acceptInt(int i) {}
embedded void acceptFloat(int f) {}
embedded void acceptChar(char c) {}
embedded void acceptShort(short s) {}
embedded void acceptDouble(double d) {}
acceptInt('a');
acceptInt((byte) 0);
acceptFloat(Int.MAX_VALUE);
//acceptFloat(Long.MAX_VALUE);
//acceptShort(Char.MAX_VALUE);
//acceptChar(Short.MAX_VALUE);
acceptDouble('a');

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): bhatertpkbcr, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034752
Snippet name: Test primitive conversions Scratchpad
Eternal ID of this version: #1034752/1
Text MD5: 86cfece54ee9ee8fafdd0a3fa22957b2
Author: stefan
Category: javax
Type: JavaX (incomplete)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-08 03:09:56
Source code size: 371 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 138 / 150
Referenced in: [show references]