I am very new to java and I have this assignment which I have been working on very intensivly for the last 14 days.
The assignement is to build a class vector with max. 7 dimensions: what I came with to make the vector multi-dimensional is that I declared 7 variables
private double x, y,z,i,j,k,f;
which then I will initialize in constructors etc.. Well, my first question: did I build a 7 dimensional vector in this way?
OR,
should I somehow work with arrays for this problem like declaring an array;
double [][] = data; // which generates a 2D-Vector.
AND,
double [][][][][][][] = data1; //which declare a 7D-Vector??!!!
for any helpful information I will be very thankful
thanks all and Best regards to you :)