August 2018
Beginner
178 pages
4h 56m
English
Require differs from check only in the kind of exception it throws, which is an IllegalArgumentException instead of an IllegalStateException:
require(str.length > 5) { "Minimum length is 5" }
Read now
Unlock full access