title: Dominos arrangement (Java Coding)
body: <p>I am trying to use Java to solve the following.</p>
  
  <p>Given an arrangement of dominos, determine, whether or not it is a legal arrangement and return True or False accordingly. 
  For example, this is an illegal arrangement 
  [2 3][4 2][2 2][3 5] 
  and this is a legal arrangement of Dominos. 
  [2 3][3 5][5 4][4 5].</p>
  
  <p>I have no clue how to begin this to write this program.</p>