Q:

Java println method error

I am trying to print times that it takes to do certain methods.  I use 

double t0 = 0.01 * System.currentTimeMillis();
  I have 3 times like that one. 
  And when I print it like this:

System.out.println("%7d    %10.7f       %10.7f", amount,
      (t1 - t0), (t2 - t1));

I get an error:

no suitable method found for println(String,int,double,double)

Why is that?  Where does that string parameter come from? 

A:

You used System.out.println() which doesn't support adding arguments like you did in your program.  Use System.out.printf() instead of that.