Commit 6d50a951 authored by Weber Rodolphe's avatar Weber Rodolphe

typos

parent 5aedfa72
......@@ -10,7 +10,7 @@ class MyTimer{
void toc(){
long end = System.nanoTime();
long time = end-begin;
System.out.println("Elapsed Time: " + time/1000 + " ms.");
System.out.println("Elapsed Time: " + time/1000 + " µs.");
}
}
......@@ -45,9 +45,11 @@ public class App {
MyTimer timer = new MyTimer();
int[] filteredData = new int[data.length];
// data=filteredData => data & filteredData will point the same object in Object space
System.arraycopy(data,0,filteredData,0,data.length); // => data & filteredData will point the 2 similar objects in Object space
// filteredData=data; => data & filteredData will point the same object in Object space
System.arraycopy(data,0,filteredData,0,data.length); // => data & filteredData will point the 2 different objects in Object space
timer.tic();
Arrays.sort(filteredData);
timer.toc();
PrintData(data,filteredData);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment