Pregunta

I have an array of all 100000 natural numbers(1 ... 100000). I sorted it and printed the sorted array to the console but the console didn't show all the numbers the numbers were from 84599 to 100000 only.

¿Fue útil?

Solución

That has to do with the display buffer size of eclipse console

I would recommend looking at this question:

How do I increase the capacity of the Eclipse output console?

Otros consejos

Console has a text buffer, which is of finite size, and when it fills up, the old text is lost.

Make the buffer larger through Console Preferences.

Tip: type Ctrl-3 (⌘+3 on Mac), then console, to quickly access the Console Preferences without drilling down through the Eclipse Preferences tree.

Windows -> Preferences -> Run/Debug -> Console ->

Uncheck "Limit console output" to have unlimited console output

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top