Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MainClass {
- public static void main(String[] args) {
- long t1 = System.nanoTime();
- for (int i = 0; i < 1000; i++) {
- for (int j = 0; j < 1000; j++) {
- System.out.printf("O");
- System.out.printf("B");
- }
- System.out.printf("\n");
- }
- long t2 = System.nanoTime();
- double seconds = (double) (t2 - t1) / 1000000000.0;
- System.out.printf("%f seconds\n", seconds);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement