title: Java - How to use \t in my example
body: <pre><code> for (int k = 0; k &lt; 7; k++){
          System.out.println("Vak/project:\t" + vakNamen[x] + "\t\t"
          + "Cijfer: " + vakCijfers[x] + "\t" + "Behaalde punten: "
          + vakPunten[x]);
          x++;
      }
  </code></pre>
  
  <p>EDIT: the assignment wants to use system.out.printf so I will have a look at that, ty for the hint</p>
  
  <p>and the system.out.format seems interesting I never heard of that, will look into it</p>
  
  <p>Ok so my question is in this for loop I print 3 different arrays and I want them to be in a table so I used \t, but the problem u get with this is that if the "vakNamen" which is the name of the subject is LONGER than another then the tabs will go further and create this ugly table:</p>
  
  <p><a href="https://gyazo.com/398953f233f3562eecfa6c483ec73e62" rel="nofollow noreferrer">https://gyazo.com/398953f233f3562eecfa6c483ec73e62</a></p>
  
  <p>I dont really know how to ask this question but I think I should ask how to make sure \t is independant from the previous lines?</p>