about summary refs log tree commit diff
path: root/usth/ICT2.2/labwork/3/Java/VectorTest.java
blob: 4f0a4a3c60651e8c518d96a8008c14810292eeb8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
class VectorTest
{
  public static void main(String... args)
  {
    Vector u = new Vector(4, 20);
    Vector v = new Vector(6, 9);
    System.out.printf("u = %s\nv = %s\nu + v = %s\nu - v = %s\nu * v = %s\n",
                      u, v, u.add(v), u.subtract(v), u.multiply(v));
  }
}