online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
import java.io.* ; import java.util.* ; public class Main { static Vector<Persona> persone = new Vector<Persona>() ; static void caricaCSVinVector( String nomeFileCSV ) throws Exception { BufferedReader fileCSV = new BufferedReader( new FileReader( nomeFileCSV ) ) ; String rigaLetta ; String[] datiSplit ; while( true ) { rigaLetta = fileCSV.readLine() ; if ( rigaLetta == null ) break ; datiSplit = rigaLetta.split( "," ) ; persone.add( new Persona() ) ; persone.lastElement().cognome = datiSplit[0] ; persone.lastElement().nome = datiSplit[1] ; } } public static void main(String[] args) throws Exception { caricaCSVinVector( "dati.txt" ) ; for ( int i=0 ; i<persone.size() ; i++ ) { System.out.println( persone.get(i).cognome + " " + persone.get(i).nome ) ; } } }
Rossi,Mario Bianchi,Maria
class Persona { String cognome , nome ; }

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