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

1  
Execute.
2  
[[!simplejava return "ab\"c";]]
3  
4  
// Let's ignore this \u business for now, it confuses quote() and unquote()...
5  
// [[!simplejava return "de\u1234fg";]]
6  
7  
// This is better instead:
8  
[[!simplejava return "de\\fg";]]
9  
10  
[[!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: 612 / 390
Referenced in: [show references]