Logo

Programming-Idioms

History of Idiom 3 > diff from v23 to v24

Edit summary for version 24 by programming-idioms.org:
[Java] +Comment

Version 23

2016-04-19, 00:27:45

Version 24

2016-08-23, 13:44:06

Idiom #3 Create a procedure

Like a function which doesn't return any value, thus has only side effects (e.g. Print to standard output)

Idiom #3 Create a procedure

Like a function which doesn't return any value, thus has only side effects (e.g. Print to standard output)

Code
void finish(String name){
  System.out.println("My job here is done. Goodbye " + name);
}
Code
void finish(String name){
  System.out.println("My job here is done. Goodbye " + name);
}
Comments bubble
void means "no return value".