1. In my code, instead of "\" it shows "y" enter image description here

  • On the first question, it is not entirely clear what you mean: screening or incorrect encoding, and add code that you want to do. If shielding, try instead of "\" to write "\\" , because a backslash must be escaped with a backslash. On the second question, yes, the principle is the same. - MrFylypenko
  • @MrFylypenko When I write code in NetBeans, instead of \ (I don’t remember to try or just slash) it is written y. Those. I want to write \ n and it is written yn - Anton Sorokin
  • here the person had a similar problem ( w.planetnetbeans.org/topic28620.html ) was decided by replacing the font Tools-> Options-> Fonts & Colors-> Syntax-> Default. - Artem Konovalov
  • @ArtemKonovalov Remember !!! I changed the font in NetBeans! Change to another. Thank! - Anton Sorokin
  • one
    Complete the answer with the name of the font before and after, maybe this question will be useful not only for you but also for someone else - Artem Konovalov

1 answer 1

The problem was solved by replacing the font in the NetBeans settings with the default font.
PSThe problem font was "... Gothic ...".

  • 3
    And what kind of font caused this problem? - gil9red
  • @ gil9red either YU Gothic or MS Gothic, I do not remember. - Anton Sorokin