variable
Hi
I'm using 3 classes in 3 files A, B, C in a package letters. In the main class A, I define as a member an array public static double DateInput[] which I want to use in a method of the class B. But the array DateInput[] is not recognized. What should I change to have the possibility to use this array in the other classes ?
Thanks
[353 byte] By [
new75javaa] at [2007-11-26 18:55:00]

You have to reference it as A.DateInput in class B. For this purpose, you can even drop the "public" keyword from the DateInput-declaration. This way, it will only be visible to classes in the letters package.
Arguably you shouldn't use fields in other classes anyway. Refactor your design so the methods that need the data live in the same class as the data.
Also it's good to follow java naming conventions. Fields start with lower case letters (unless they're constants, in which case they're all upper case).