1 | public class main {
|
2 | public main: String[] args {
|
3 | print "Smalltalk-style main function :)" |
4 | compare: 3 and: 5; |
5 | compare: 10 and: 2; |
6 | } |
7 | |
8 | static void compare: int a and: int b {
|
9 | if (a < b) |
10 | print "a is smaller than b" |
11 | else |
12 | print "a is not smaller than b" |
13 | } |
14 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #612 |
| Snippet name: | Smalltalk-style methods test |
| Eternal ID of this version: | #612/1 |
| Text MD5: | 4c81cbfbd5e04077f979b101cfc70932 |
| Author: | stefan |
| Category: | javax/smalltalk |
| Type: | JavaX source code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2015-05-10 14:13:48 |
| Source code size: | 306 bytes / 14 lines |
| Pitched / IR pitched: | No / Yes |
| Views / Downloads: | 1047 / 978 |
| Referenced in: | [show references] |