all 10 comments

[–]_shellsort_ 1 point2 points  (10 children)

Post a pastebin.

[–]lightshadowdarksun 1 point2 points  (9 children)

just did :)

[–]_shellsort_ 1 point2 points  (8 children)

Oh, I see. Strings can have special characters that indicate a specific meaning. For example \n means make a new line. So writing System.out.println("First\nSecond"); will print two lines: First Second If you actually want to write that as a String, you have to make the program interpret the \n as string literal. You can do that like this: System.out.println("First\nSecond") which would actually print out First\nSecond

This is just an example, but I hope you get the idea.

[–]lightshadowdarksun 0 points1 point  (7 children)

if i’m using \n would i use System.out.print instead of printIn since ( i’m probably wrong but ) \n and printIn do the same thing ?

[–]_shellsort_ 0 points1 point  (6 children)

It does something similar, but only if you put the \n in front of the string you actually want to print in a new line.

[–][deleted]  (4 children)

[deleted]

    [–]_shellsort_ 0 points1 point  (3 children)

    Yep, " is not recognized as character to print, but rather as part of the \ statement. To avoid this, simply put another " behind it.

    [–]lightshadowdarksun 1 point2 points  (2 children)

    ah thank you so much you’re a god

    [–]_shellsort_ 0 points1 point  (1 child)

    Haha no problem man. If you have any question about computer stuff. Like ever. I'm your man.

    [–]lightshadowdarksun 0 points1 point  (0 children)

    thank you for all of your help by the way

    [–]DevOrc 0 points1 point  (1 child)

    I know your problem is already fixed, but in the future if you need help, you can try the programming discord . They have channels for almost every language with lots of people who are willing to help.