In Java
ArrayList<String> strings = new ArrayList<String>();
In Pharo
strings := OrderedCollection new.
new
Thread regThread = new Thread( new Runnable() { @Override public void run() { this.doSomething(); } }); regThread.start();
[ self doSomething ] fork
In Java 8
new Thread(() -> this.doSomething()).start();
5 factorial Transcript cr
3 + 4 5 -> 10
Transcript show: 'hello world' 2 between: 0 and: 5
receiver.keyword1keyword2(arg1, arg2)
anObject keyword1: arg1 keyword2: arg2
postman.send(mail,recipient);
postman.send(mail,recipient); postman . send ( mail , recipient );
postman.send(mail,recipient); postman . send ( mail , recipient ); postman send mail recipient
postman.send(mail,recipient); postman . send ( mail , recipient ); postman send mail recipient postman send mail to recipient
postman.send(mail,recipient); postman . send ( mail , recipient ); postman send mail recipient postman send mail to recipient postman send: mail to: recipient
postman send: mail to: recipient
send:to:
postman
mail
recipient
if
else
for
while
do
fullName isEmpty ifTrue: [ 'FirstnameLastname' ] ifFalse: [ fullName ]
4 timesRepeat: [ self doSomething ]
0 to: 100 do: [ :i | ... ]
0 to: 100 by: 3 do: [ :i | ... ]
aCollection do: [ :each | ... ]
/