Can somebody explain me why this code does not print the numbers?
String text = new String("SomeString"); for (int i=0; i<1500; i++)
String.concat() accepts a String parameter.
String
If you add "a number and a character" you are adding a string because the + operator understands you are chaining String and numeric data.
+
Anyway code runs fine to me, numbers appended till 1499 as expected.