Skip to content
Advertisement

System.out.print() doesn’t send any output to Eclipse console. Why?

I have the following Java class:

public class Test {

    public static void main(String args[]) {

        for (int i = 0; i < 1448; i++) {
            System.out.print(i);
        }

    }
}

When I run this code in Eclipse IDE, I don’t see any output in Eclipse console.

If I change value 1448 and set for example 1447 or less, I see output in console (12345678…)

So, maybe Eclipse IDE has restrictions on string length in console?

What do you think about this?

Advertisement

Answer

Right click on in console -> Preferences... -> check Fixed width console. Now you have auto word wrap and everything shows ok. Seems like Eclipse console have a limit on number of characters displayed in one line.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement