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

10
LINES

< > BotCompany Repo | #1000370 // SimpleJava example for TinyBrain to learn (lesson 3, strings with escapes)

IOIOI

Execute.
[[!simplejava return "ab\"c";]]

// Let's ignore this \u business for now, it confuses quote() and unquote()...
// [[!simplejava return "de\u1234fg";]]

// This is better instead:
[[!simplejava return "de\\fg";]]

[[!simplejava return "an\"other str\"ing";]]

Author comment

Began life as a copy of #1000369

download  show line numbers   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1000370
Snippet name: SimpleJava example for TinyBrain to learn (lesson 3, strings with escapes)
Eternal ID of this version: #1000370/1
Text MD5: ddc40954193e45d54104ffbc9a2b104b
Author: stefan
Category:
Type: IOIOI
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-07-30 19:54:11
Source code size: 276 bytes / 10 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 548 / 366
Referenced in: [show references]