I have a set of three numbers, and I want to save several copies of this set in an array. for example, if I were doing this in C, it would be something like:
struct tParams { int v; double A; double n; }; static struct tParams Params[] = { { 4230, 1.477404177730177e-04, 1.9565}, { 3680, 1.920339268755614e-04, 1.925 }, { 3450, 2.894751026819746e-04, 1.875 }, { 3295, 4.349905111115636e-04, 1.825 },
How can I do this in Java?
thanks
EDIT To clarify, these values ββwill be hard-coded and will be specified only by reference. If I use ListArray classes, it seems like I need to add every object from the method.
I am creating a class with methods that will prepare mathematical operations. Some of these methods use data that I hardcode to obtain coefficients. In C, structures are defined in the main mathOperations class, but not in the method.
source share