title: I need to stop displaying the last symbol in a System.out..print(); in Java
body: <p>I'm practically adding a comma, after each element from an array. At the end of the <code>.print();</code> I would like to, either replace the comma with a dot or not display the comma at all anymore. But I'm not looking for fancy String methods to do that! I want to do it as simple as possible, within the <code>System.out.print();</code> if possible at all... creating new whole methods, just to have this done is too much of a strain on my app(out of scope)! Are there ways to achieve this goal?</p>
  
  <p>Here's my code:</p>
  
  <pre><code>public static void main(String[] args) {
          // TODO code application logic here
          Person Luigi = new Person("Luigi", "Mascarpone", 1985, "brown", "Farmer", true);
          Person Giancarlo = new Person("Giancarlo", "Bebeto", 1980, "green", "Banker", true);
          Person Marietta = new Person("Marietta", "Cardinale", 1990, "blue", "Acountant", false);
          Person Claudia = new Person("Claudia", "Pepino", 1995, "brown", "Nurse", false);
  
          Person persons[] = {Luigi, Giancarlo, Marietta, Claudia};
          Person personal[] = new Person[4];
          personal[0] = Luigi;
          personal[1] = Giancarlo;
          personal[2] = Marietta;
          personal[3] = Claudia;
  
          filterPers(personal);
      }
  
  public static void filterPers(Person personal[]) {
  
          System.out.print("The persons contained within the array, are: ");
          for(Person n : personal) {
              System.out.print(n.name + ", ");
          }
  }
  </code></pre>
  
  <p>The output looks like this:</p>
  
  <p>The persons contained within the array, are: <code>Luigi, Giancarlo, Marietta, Claudia,</code></p>
  
  <p>So I basically, either wish to replace the last comma with a dot or remove it entirely.</p>