Problem:

System.out.println("1 - Вход" + "2 - Регистрация" + "3 - Меню" + "4 - Поиск" + "5 - Сортировки" + "6 - Сохранение в файл" + "7 - Об авторе" + "8 - О приложении"); 

There is a very long line, the code becomes unreadable.

Question: How to arrange this line in view of java code conventions?

    1 answer 1

     System.out.println("1 - Вход" + "2 - Регистрация" + "3 - Меню" + "4 - Поиск" + "5 - Сортировки" + "6 - Сохранение в файл" + "7 - Об авторе" + "8 - О приложении"); 

    Readable? - readable.

    • given java code conventions? - studentST
    • one
      @studentST, from the point of view of the Oracle Code Conventions and Google Code Conventions - quite. Your company may have other rules. - Nofate
    • 2
      Rules created primarily for what? For readability by developers. Some + put a new line. Well, the taste and color as they say - JVic