I cant remove static from xxx declaration, because i wont be able to print it in static void Main
if i remove static from main, Netbeans will not find main function
and the question is, how to print correct values. At now it looks like a pointer
Here is example of working array
Code
public class Testit {
protected static ArrayList<Integer> aint = new ArrayList<Integer>();
public static void main(String[] args) {
subclass sub = new subclass();
sub.doit();
System.out.println(aint.get(0));
}
}
Code
public class subclass extends Testit
{
public void doit()
{
super.aint.add(5);
}
}
but my wont work, i think is constructor fault

The main difference is that, that there is ArrayList<Integer>, My class is constructed from int, string, and double values, so it can be the reason
This post was edited by Sobiech12118 on Dec 2 2012 06:39pm