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

6
LINES

< > BotCompany Repo | #1000604 // Text to Java example (Put X on the widget)

JavaX (snippet commenter) [tags: use-pretranspiled]

Transpiled version (321L) is out of date.

!636
!snipcom

String orig = s;
s = s.replaceAll("Put ([^\\\"]+) on the widget", "updateWidgetWithText(\"$1\");");
if (orig.equals(s)) s = ""; else s = "Edit suggestion:\n" + s;

download  show line numbers  debug dex  old transpilations   

Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, hxnwyiuffukg, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt

Comments [hide]

ID Author/Program Comment Date
131 #1000604 (pitcher) 2015-08-20 15:28:24
121 #1000610 (pitcher) Edit suggestion:
!636
!629

main {
static Object androidContext;
static String programID;

public static void main(String[] args) throws Exception {
!636
!snipcom

String orig = s;
s = s.replaceAll("Put ([^\\\"]+) on the widget", "updateWidgetWithText(\"$1\");");
if (orig.equals(s)) s = ""; else s = "Edit suggestion:\n" + s;
}}
2015-08-20 15:28:24

add comment

Snippet ID: #1000604
Snippet name: Text to Java example (Put X on the widget)
Eternal ID of this version: #1000604/1
Text MD5: 8c7bf27ed45c1e4ce980ca52826bda3c
Author: stefan
Category: javax
Type: JavaX (snippet commenter)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-08-20 15:28:24
Source code size: 182 bytes / 6 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 1081 / 1366
Referenced in: [show references]