title: Grouping a list of string in java
body: <p>I am new to java and i am trying to group a list of numeric string base on their first 5 characters and last 5 characters. </p>
  
  <p>E.g</p>
  
  <p>User input:
  12345678901
  12345678902
  12345678903
  12345678904
  12345578901</p>
  
  <p>The system should output
  12345678901
  12345578901</p>
  
  <p>Thanks a lot</p>