la dichiarazione era identica ma il problema rimane, mi dice il metodo cd (string string, int, double) non è definito per il type collaudo e che ovviamente le variabili auth title ecc ecc non vengono usate. Dove diavolo sbaglio?codice:public class test { private String auth; private String title; private int time; private double price; void cd(String au, String tl, int tm, double pr){ this.auth = au; this.title = tl; this.time = tm; this.price = pr; } } class collaudo{ public static void main(String args[]){ test cd[] = new test[6]; cd[0]= cd ("Lady gaga", "The Fame monster", 118, 20.72); cd[1]= cd ("Track 2 inediti", "Vasco Rossi", 95, 16.72); cd[2]= cd ("if", "Mario biondi", 100, 17.52); cd[3] = cd("Laura live tour","Laura pausini", 98, 19.50); cd[4] = cd ("Crazy love", "Michael bublè", 90, 20.40); cd[5] = cd("this is is", "Michael Jackson",120, 21.90); for(int i=0;i<6; i++) System.out.println(cd[1]);

Rispondi quotando