online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
import java.util.ArrayList; import java.util.stream.Collectors; public class Main { public static void main(String[] args) { PackageOfProducts p = new PackageOfProducts(); p.products.add(new Products("Product1")); p.products.add(new Products("Product2")); p.products.add(new Products("Product3")); System.out.println(p); } } class PackageOfProducts { ArrayList<Products> products = new ArrayList<>(); @Override public String toString() { return products.stream().map(Products::getName) .collect(Collectors.toList()) .toString(); } } class Products { private String name; public Products(String name) { this.name = name; } public String getName() { return name; } }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue