title: concatenation of variables with probability of null or 0
body: <p>Ok i don't know how to exactly explain completely what my issue is i'm facing to get what i want, but the basis of what i'm trying to accomplish here is...i don't want a <strong><em>-> ; &lt;-</em></strong> to show up if the variable is <strong>Null</strong> or <strong>0</strong>. Something I've attempted so far is a scanner input where when you run the code it asks to input values that are > 0 and if you input one thats not it'll give an invalid input error. Im trying to find a different method where its not needed to keep repeating this method for 20 or more. Like i said im just trying to have it input the numbers automatically, and if theres no number in one of the variables it would skip it and not put another " ; " and just put the ones that do have numbers with the semicolon. So what i'm looking at to accomplish is listed in the image bellow : </p>
  
  <p><img src="https://i.stack.imgur.com/FJd5h.png" alt="what im trying to accomplish exactly"></p>