001package algs12;
002import stdlib.*;
003import java.util.*;
004public class Hello {
005        public static void main (String[] args) {
006                Trace.showBuiltInObjects (true);
007                Trace.run ();           
008                int[] x = new int[] { 11, 21, 31 };
009                int[] y = new int[] { 11, 21, 31 };
010                Trace.draw ();
011                StdOut.println ("x=" + x + ", y=" + y);
012                StdOut.println ("x=" + Arrays.toString(x) + ", y=" + Arrays.toString(y));
013                StdOut.println ("                  x==y : " + (x == y));
014                StdOut.println ("   Objects.equals(x,y) : " + (Objects.equals(x,y)));
015                StdOut.println ("           x.equals(y) : " + (x.equals(y)));
016                StdOut.println ("    Arrays.equals(x,y) : " + (Arrays.equals(x,y)));
017        }
018}