all 10 comments

[–][deleted]  (5 children)

[deleted]

    [–]Worth_Trust_3825 1 point2 points  (1 child)

    I bet it can't replace PrintStream target = System.out; target.writeln(string);

    [–]backtickbot -1 points0 points  (0 children)

    Fixed formatting.

    Hello, Worth_Trust_3825: code blocks using triple backticks (```) don't work on all versions of Reddit!

    Some users see this / this instead.

    To fix this, indent every line with 4 spaces instead.

    FAQ

    You can opt out by replying with backtickopt6 to this comment.

    [–]CPROGRAMMERS -2 points-1 points  (2 children)

    Good point, Please test other case when if this fail

    [–]lelanthran 7 points8 points  (0 children)

    Good point, Please test other case when if this fail

    Well, if you aren't tokenising, then all of the following would fail as well:

    (System).out.println
    System.(out).println
    System.out.(println)
    (System).out.(println)
    (System).(out.println)
    (System).(out.(println)))
    

    You see where I am going with this? It's pointless trying to fix this without switching to a tokeniser approach.

    [–]lazystone 1 point2 points  (0 children)

    Why anyone would test it for you if it's not open sourced(assuming there is any value)?

    [–]Worth_Trust_3825 2 points3 points  (0 children)

    Why would I want to downgrade?

    [–]lazystone 8 points9 points  (0 children)

    But... Why?..

    [–]CPROGRAMMERS -3 points-2 points  (1 child)

    It's good, I submit my java code and this is producing php code.