TryJava8 -- Free , Online Java 8 Code Editor

Write your Java 8 code online anywhere , anytime ...

Connect with your github account to manage your programs

Run your Java 8 Code

Program Timer (hh:mm:ss)


Program Status

Program Output


  • Don't use any package name.
  • Add all the required import statements.
  • The class name can be any valid Java classname but it should be public as shown public class Main
  • Every class should have main method. The program invoke the main method.
  • The program should terminate under one minute else application will terminate the program.


import java.util.*;
public class Main{
public static void main(String[] args){
List<Integer> numbers = new ArrayList<Integer>();
for(int i = 0;i<200;i++){
numbers.forEach((Integer value) -> {
if(value % 2 == 0)