@@ -0,0 +1,929 @@
+package com.haxademic.demo.system;%0A%0Aimport java.util.ArrayList;%0A%0Aimport com.haxademic.core.app.P;%0Aimport com.haxademic.core.app.PAppletHax;%0Aimport com.haxademic.core.app.config.AppSettings;%0Aimport com.haxademic.core.app.config.Config;%0A%0Apublic class Demo_Java8ForEach%0Aextends PAppletHax %7B%0A%09public static void main(String args%5B%5D) %7B arguments = args; PAppletHax.main(Thread.currentThread().getStackTrace()%5B1%5D.getClassName()); %7D%0A%09%0A%09protected void config() %7B%0A%09%09Config.setProperty( AppSettings.SHOW_DEBUG, true );%0A%09%7D%0A%0A%09protected void firstFrame() %7B%0A%09%09ArrayList%3CString%3E strings = new ArrayList%3CString%3E();%0A%09%09strings.add(%22TEST%22);%0A%09%09strings.add(%22TESTING%22);%0A%09%09strings.add(%22ANOTHER%22);%0A%09%09%0A%09%09// static method definition%0A%09%09strings.forEach(P::error);%0A%09%09// local instance method%0A%09%09strings.forEach(name -%3E testOutput(name));%0A%09%7D%0A%09%0A%09protected void testOutput(String input) %7B%0A%09%09P.error(input);%0A%09%7D%0A%09%0A%09protected void drawApp() %7B%0A%09%09background(0);%0A%09%7D%0A%0A%7D%0A

Create Demo_Java8ForEach.java