Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.util.ArrayList;

public class Main {

    public static ArrayList<Double> matrixMinus(ArrayList<Double> a1, ArrayList<Double> a2) {
        ArrayList<Double> res = new ArrayList<Double>();
        for (int i = 0; i < a1.size(); i++) {
            res.add(a1.get(i) - a2.get(i));
        }
        return res;
    }
}