java - Why there is no output is eclipse console -
i have no idea why eclipse not printing on console while running program.
public class stringoptimization { public stringoptimization() { } public static void main(final string[] args) { final stringoptimization optimization = new stringoptimization(); final string samplearray[] = new string[60000]; (int = 0; <= 50000; i++) { samplearray[i] = "i"; } final string finalstring = optimization.addstringitems(samplearray, true); system.out.println(finalstring); } public string addstringitems(final string[] items, final boolean forceuppercase) { final stringbuilder returnvalue = new stringbuilder(); (final string item : items) { returnvalue.append(item); } return forceuppercase ? returnvalue.tostring().touppercase() : returnvalue.tostring(); } }
there configurable limit number of characters kept in console, around 80000 characters. mean line printed , discarded again.
increase setting in preferences.
Comments
Post a Comment