All pastes #934257 Raw Edit

adr

public text v1 · immutable
·published 2008-03-08 18:53 UTC
rendered paste body
/**
	 * @param args
	 */
	public static void main(String[] args) {
		long start = System.currentTimeMillis();
		BigInteger num = new BigInteger("9");
		num.pow(387420489);
		long end = System.currentTimeMillis();
		long result = end - start;
		System.out.println("result: " + (result));
		try {
			FileWriter wr = new FileWriter("c:/adr.txt");
			wr.write(Long.toString(result));
			wr.close();
		}
		catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}