public static void main(String[] args) {
long a,b;
String s = "hallo";
a = System.currentTimeMillis();
while(s.length()<10000) s += "hallo";
b = System.currentTimeMillis();
System.out.println(b-a);
}
while(s.length()<10000) s += "hallo";