title: Is it possible to use a variable and a string within the same system.out.print for a calculation?
body: <pre><code>int b1 = 0;      // This is supposed to be a running total
  
  System.out.println("*" * (b1));
  </code></pre>
  
  <p>I know this is wrong but I was wondering<code></code>whether there was a way to do such calculation` </p>
  
  <p>I am trying to multiply the * with a variable (b1) so that it prints * depending on the variable. As the variable increases the amount of * should increase.</p>