online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner userInput = new Scanner(; String[] asignaturas = {"Volvo", "BMW", "Ford", "Mazda"}; for(int i = 0; i < asignaturas.length; i++){ System.out.println("Ingresa la asignatura ["+(i+1)+"]"); asignaturas[i] = userInput.nextLine(); } for(int n = 0; n < asignaturas.length; n++) { System.out.println(asignaturas[n]); } } }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text



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