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

21
LINES

< > BotCompany Repo | #1001280 // Unterhaltung mit Leopold 3 (refactoring)

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (704L/6K/18K).

1  
!747
2  
3  
main {
4  
  !include #1001279 // Leopold
5  
  
6  
  static synchronized S answer(S s, L<S> history) {
7  
    if (match3("wie hei\u00dft du", s))
8  
      return "Leopold";
9  
    
10  
    if (match3("wie ist deutschland", s))
11  
      return "es ist h\u00e4sslich";
12  
    
13  
    if (match3("wie ist \u00f6sterreich", s))
14  
      return "es ist sehr sch\u00f6n";
15  
      
16  
    if (match3("du bist lustig", s))
17  
      return "danke sch\u00f6n";
18  
    
19  
    return s;
20  
  }
21  
}

Author comment

Began life as a copy of #1001278

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1001280
Snippet name: Unterhaltung mit Leopold 3 (refactoring)
Eternal ID of this version: #1001280/1
Text MD5: 70fdc755902e43a848ed9cd3cdfde065
Transpilation MD5: 07dddcddbdbaf446e28ba6e09f0fbe4a
Author: stefan
Category:
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-10-06 19:08:15
Source code size: 458 bytes / 21 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 512 / 552
Referenced in: [show references]