Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- final int[] i = new int[]{0};
- for ($(() -> {
- i[0] = 0;
- }); $$(() -> {
- // Code here
- return i[0] < 10;
- }); $(() -> {
- // Or here
- i[0]++;
- })) {
- // Or even here!
- }
- }
- private static final void $(Runnable runnable) {
- runnable.run();
- }
- private static final boolean $$(Supplier<Boolean> supplier) {
- return supplier.get();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement