Define an array object in java -
i found class declaration works me, wonder if class written more "short": public class data implements comparable <data>{ public data (int category, string quality, string title ) { super(); this.category = category; this.quality = quality; this.title = title; } int category; string quality; string title; @override public int compareto(data d) { return this.getduration_value() - (d.getduration_value()); } } why have mention "category, quality title" ? , why "super()" ? have shorter. found other explanations, "complex structure". the "data" given these lines, , want not have declare in advance length of array: data[] mydataarray = { new data(0, // category "0" "***", // quality "mytitle1") // title new data(0,