基本的な説明が必要です。誰かが私を助けてくれるかもしれないいくつかのサンプルコードを作成するつもりです-これに何時間も取り組んできましたが、配列などでクラスを適切に使用する方法がわかりません. 私はすでに javadocs の内容を読みましたが、まだ混乱しています。誰かがこれを解決する方法を教えてくれれば、私が解決しようとしている問題に適用できることを意味するので、大いに感謝します。
public class main{
int id =0;
double data1 = 0;
double data2 = 0;
double data3 = 0;
public static void main(String[] args){
id++; // do some stuff to the data.
}
public class datastorage{
/*I want to create an array of arrays in this class to store the
hanging values from the main class
e.g. {{1,34.2,34.6,23.1}{2,38.2,33.6,22.6}}
I then want to be able to call each array back to the main to display depending on
which ID I choose. */
}