public class Main
{
private double [] vektor;
public Main() {
double [] vektor = {2, 3.5, -5};
}
public Main plus (Main vektor){
double [] a = {2, 3.5, -5};
double [] b = {2, 3.5, -5};
double [] r = new double [a.length+b.length];
System.arraycopy(a, 0, r, 0, a.length);
System.arraycopy(b, 0, r, a.length, b.length);
return r;
}
}
private double [] vektor;
public Main() {
double [] vektor = {2, 3.5, -5};
}
public Main plus (Main vektor){
double [] a = {2, 3.5, -5};
double [] b = {2, 3.5, -5};
double [] r = new double [a.length+b.length];
System.arraycopy(a, 0, r, 0, a.length);
System.arraycopy(b, 0, r, a.length, b.length);
return r;
}
public Main plus (Main vektor)
public double[] plus (Main vektor)
public Main(double [] vektor) {
this.vektor = vektor;
}