about summary refs log tree commit diff
path: root/usth/ICT2.2/labwork/1/AllEqual.java
blob: b1d69296cf3669da3c48889f0bccd4c7f6fa0809 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
import java.util.Arrays;

class AllEqual
{
  public static void main(String... args)
  {
    String first = args[0];
    System.out.println(Arrays.stream(args).allMatch(a -> (a.equals(first))));
  }
}