Menu

[solved] – Question 8247

Hello! How can I measure time of executing of this program? Thanks!

package hanoi;

public class Test {

/**
* @param args
*/
public static void main(String[] args) {
final byte size = 35;
Tower t = new Tower(size);
t.MoveTower(size, 1, 3, 2);
System.out.println(t.getSteps());
System.out.println(Math.pow(2, size) – 1);
}

}

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *