online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
import java.util.ArrayList; import; 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 .collect(Collectors.toList()) .toString(); } } class Products { private String name; public Products(String 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.