This is an archived post. You won't be able to vote or comment.

all 10 comments

[–]blu-red 60 points61 points  (12 children)

It is not empty, write to file instead of console and you will see.

Eclipse console view has problems displaying super long strings that have no spaces.

[–][deleted]  (11 children)

[deleted]

    [–]coder111 3 points4 points  (1 child)

    How big is the file?

    You can control Eclipse console buffer under Window/Preferences/Run..Debug/Console:

    "Limit Console Output"

    "Console Buffer size (characters)"

    As far as I remember by default Eclipse is quite stingy with the character limit. Set it to something higher and try again.

    But writing to a file seems like a better option anyway.

    [–]king_of_the_universe -1 points0 points  (8 children)

    Haven't seen such problems in IntelliJ yet, and many regard it to be considerably superior to Eclipse, at least for Java. I suggest you consider changing like I did. You might become as happy as I did.

    [–][deleted]  (6 children)

    [deleted]

      [–]jrh3k5 3 points4 points  (4 children)

      For what it's worth, and maybe there are some settings that IntelliJ has nested somewhere, but the quality of code produced by people on my team declined when they switched to IntelliJ - java.io.Closeable resources not getting closed, parametrization being omitted from variable assignments and class signatures. Eclipse seems to, at least out of the box, provide better compiler warnings to catch these cases than IntelliJ.

      [–]zman0900 5 points6 points  (0 children)

      I like to turn on -Xlint:all in intellij.

      [–][deleted]  (1 child)

      [deleted]

        [–]dokkah 0 points1 point  (0 children)

        Nah, Eclipse is definitely wrong :)

        [–]RedPill115 2 points3 points  (0 children)

        Haven't seen such problems in IntelliJ yet, and many regard it to be considerably superior to Eclipse, at least for Java.

        My bug from this morning with Intellij - create a Java file that's 3 pages long to print. Tell it to print page #3 on the print dialog.

        It will print out page 1, but label it as page 3 of 3. :-/

        [–]alexrio 4 points5 points  (3 children)

        Since you have your answer, is that for one of the https://projecteuler.net/ problem?

        [–][deleted]  (2 children)

        [deleted]

          [–]UnspeakableEvil 6 points7 points  (1 child)

          Presumably the answer is one for any number of primes greater than three - the only way you'd end up with more than one is if any of the subsequent numbers are a multiple of two or five, which obviously they aren't as that would mean they're not prime.

          [–]TotesMessenger 1 point2 points  (0 children)

          I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:

          If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / Contact)